status-go/geth/api
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.go Push notifications: ability to trigger notifications via public API (#327) 2017-09-15 18:57:34 +03:00
api_test.go Add file logger support (#269) 2017-09-02 01:44:50 +07:00
backend.go Push notifications: ability to trigger notifications via public API (#327) 2017-09-15 18:57:34 +03:00
backend_accounts_test.go Bugfix/eth accounts workaround #294 (#318) 2017-09-15 11:44:31 +03:00
backend_jail_test.go Implemented sendAsync for js commands with a callback (#321) 2017-09-18 15:13:32 +03:00
backend_test.go Improve geth/api tests (#328) 2017-09-15 13:35:31 +03:00
backend_txqueue_test.go Improve geth/api tests (#328) 2017-09-15 13:35:31 +03:00