I wrote an Order Statistic Tree implementation, essential for ranking/comparing users and/or products:
https://github.com/drcode/ethereum-order-statistic-tree I would welcome any feedback on my usage of ethereum contracts and solidity... since I am not part of the ethereum team(s) I would greatly appreciate any feedback on conceptual issues regarding the design of this contract from experienced ethereum devs.
Note to solidity & go-ethereum dev teams: After overcoming the initial "alpha software" config hurdles, I was surprised to encounter basically ZERO issues in either the solidity compiler or go-ethereum CLI during the creation of this contract... GOOD WORK!
Comments
Also, you have the best avatar and name.
What I did:
- Start a webserver to host these files on http://localhost:12345
- Open http://localhost:12345/ost_test.html
- Press "Publish contract". I get a message box asking me to confirm the creation. The contract is created successfully.
- Press "Run tests". This takes a while and results in a table with results. A couple green, a couple red and most empty.
Not sure whether this was the completely desired result, but at least the basics seem to work. Great to have a complete and working example of a DApp with a Solidity contract!I just ran it today and it worked OK for me, but I'm 100% dedicated to go-ethereum, I was planning on staying away from ethereum-cpp for a few more weeks... I can only cope with one piece of alpha ethereum software at a time :-)
Good to hear you're getting at least SOME positive results, not sure why they're not 100% the same, could be bad javascript triggering undefined behavior in the API, or just bugs in ethereum-cpp. (I'm also a little unclear at how ethereumjs deals with zero confirmation transactions... it's possible the errors you're seeing is because ethereum-cpp does transaction reordering in some way that confuses the test harness...)
Please follow the following exact steps and let me know if this gives you the same output:
1. Refresh the browser
2. Press "Publish contract"
3. Press "Run Tests"
If you're still getting red output, I'd appreciate it if you sent it to me at drcode [@] gmail.com so that I can look at what's happening - I'm curious to know where the two ethereum clients diverge... any javascript errors would be helpful as well.