Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

light-fetch: Differentiate between out-of-gas/manual throw and use required gas from response on failure #9824

Merged
merged 3 commits into from
Nov 14, 2018

Commits on Nov 13, 2018

  1. 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
    niklasad1 committed Nov 13, 2018
    Configuration menu
    Copy the full SHA
    e0694b2 View commit details
    Browse the repository at this point in the history
  2. fix(light-fetch): ensure block_gas_limit is tried

    Try the `block_gas_limit` before regard the execution as an error
    niklasad1 committed Nov 13, 2018
    Configuration menu
    Copy the full SHA
    73c00b9 View commit details
    Browse the repository at this point in the history
  3. Update rpc/src/v1/helpers/light_fetch.rs

    Co-Authored-By: niklasad1 <niklasadolfsson1@gmail.com>
    cheme and niklasad1 authored Nov 13, 2018
    Configuration menu
    Copy the full SHA
    597fa52 View commit details
    Browse the repository at this point in the history