status-go/geth
Ivan Tomilov 5f19c9cd0a Implemented sendAsync for js commands with a callback (#321)
Geth js commands coming through jail with a callback will now be executed truly asynchronously blocking jail only when an actual interaction with VM is performed.

Technically, it registers a new handler jeth.sendAsync which executes functions with callbacks asynchronously.

Changes include:

1. Send and SendAsync now use cell.VM instead of otto.Otto providing proper locking.
2. Unmarshalling in ExecuionPolicy.ExecuteWithClient is now done into var result interface{} instead of var result json.RawMessage because test case 0 of TestJailWhisper failed providing byte codes instead of 5.0.
3. Due to the asynchronous nature of web3 calls new weird timeouts in tests have been introduced. They may fail sometimes but I gave up trying to implement a more reliable and readable solution.
2017-09-18 15:13:32 +03:00
..
api Implemented sendAsync for js commands with a callback (#321) 2017-09-18 15:13:32 +03:00
common Prevent from completing tx multiple times (#330) 2017-09-18 11:53:08 +03:00
jail Implemented sendAsync for js commands with a callback (#321) 2017-09-18 15:13:32 +03:00
log Add some docs/readmes (#329) 2017-09-15 19:00:00 +03:00
node Prevent from completing tx multiple times (#330) 2017-09-18 11:53:08 +03:00
params Add file logger support (#269) 2017-09-02 01:44:50 +07:00
rpc Add support for JSON-RPC array payload. (#335) 2017-09-17 17:06:18 +03:00
testing Add support for 'go test -v' flag for tests (#315) 2017-09-14 14:41:50 +03:00