ethereum-order-statistic-tree
ethereum-order-statistic-tree copied to clipboard
sometimes "run tests" works, mostly it doesn't
Run tests button usually builds the table of values. When it fails, second row "percentile(5)" shows failed, fifth row "rank(5)" shows passed, seventh "rank(5)" shows failed, tenth row "count()" shows failed, etc.
Rightmost column shows { "value":0,"dupes":0} in all rows. Same behavior in Mist and AlethZero.
When the run tests transaction sits in pending for a while, it doesn't build the table at all.
Thanks, I can dupe some of this behavior... I probably am using ethereumjs in a way it isn't intended, I will investigate when I have time. (though I think this issue is related to testing, the contract itself isn't responsible for the problem, so a bit lower priority)
I will leave this issue open and fix it once I've had time to experiment with the latest go-ethereum.... In the latest verison, I think the compiler may want the contract to be mined in a block first before it lets you run transactions against it, so just waiting 12 sec before clicking "run tests" solves the issue temporarily (but I need to investigate more)
Actually, I waited until the contract was mined into a block and then clicked "Run Tests". Got the same anomalous behavior as before.