openethereum/rpc/src
Niklas Adolfsson 23a29439c0 light-fetch: Differentiate between out-of-gas/manual throw and use required gas from response on failure (#9824)
* fix start_gas, handle OOG exceptions & NotEnoughGas

* Change START_GAS: 50_000 -> 60_000
* When the `OutOfGas exception` is received then try to double the gas until it succeeds or block gas limit is reached
* When `NotEnoughBasGas error` is received then use the required gas provided in the response

* fix(light-fetch): ensure block_gas_limit is tried

Try the `block_gas_limit` before regard the execution as an error

* Update rpc/src/v1/helpers/light_fetch.rs

Co-Authored-By: niklasad1 <niklasadolfsson1@gmail.com>
2018-11-14 13:04:33 +03:00
..
tests chore(rpc-tests): remove unused rand (#9896) 2018-11-12 13:41:05 +03:00
v1 light-fetch: Differentiate between out-of-gas/manual throw and use required gas from response on failure (#9824) 2018-11-14 13:04:33 +03:00
authcodes.rs Remove initial token for WS. (#9545) 2018-09-13 10:58:52 +02:00
http_common.rs Replace tokio_core with tokio (ring -> 0.13) (#9657) 2018-10-22 09:40:50 +02:00
lib.rs Health endpoint (#9847) 2018-11-07 09:30:34 +01:00