status-go/static
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
..
config Updated CHT (#279) 2017-09-07 10:54:33 +03:00
keys whisper: JavaScript tests to cover updated Whisper API 2017-05-14 02:34:08 +03:00
scripts whisper: JavaScript tests to cover updated Whisper API 2017-05-14 02:34:08 +03:00
testdata Implemented sendAsync for js commands with a callback (#321) 2017-09-18 15:13:32 +03:00
tests Merging bug/whisper-on-geth1.6.1 (#236) which acts like develop 2017-08-04 23:14:17 +07:00
bindata.go Implemented sendAsync for js commands with a callback (#321) 2017-09-18 15:13:32 +03:00
static.go Merging bug/whisper-on-geth1.6.1 (#236) which acts like develop 2017-08-04 23:14:17 +07:00