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

[Light client] NotEnoughBaseGas for RPC without specifying any Gas. #9031

@Tbaut

Description

@Tbaut

I'm running:

  • Which Parity version?: full node 1.11.5, now light node v2.1.3
  • Which operating system?: Linux
  • How installed?: binaries
  • Are you fully synchronized?: yes
  • Which network are you connected to?: kovan and mainnet
  • Did you try to restart the node?: yes

Edit:
I could reproduce with Parity Ethereum --light v2.1.3 this call on Kovan and mainner:

curl --data '{"method":"eth_estimateGas","params":[{"value":"0x0","data":"0x","from":"0x00dfc93112abd2578503b667b95491b101281f2b"}],"id":"c31e5d5f401bea24cf8b40340f532cee","jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
{"jsonrpc":"2.0","error":{"code":-32015,"message":"Transaction execution error.","data":"NotEnoughBaseGas { required: 53000, got: 50000 }"},"id":"c31e5d5f401bea24cf8b40340f532cee"}

The node with rpc logging:

2018-10-22 20:27:28   TRACE rpc  Request: {"method":"eth_estimateGas","params":[{"value":"0x0","data":"0x","from":"0x00dfc93112abd2578503b667b95491b101281f2b"}],"id":"c31e5d5f401bea24cf8b40340f532cee","jsonrpc":"2.0"}.
2018-10-22 20:27:28   DEBUG rpc  [Some(Str("c31e5d5f401bea24cf8b40340f532cee"))] Took 231ms
2018-10-22 20:27:28   DEBUG rpc  Response: {"jsonrpc":"2.0","error":{"code":-32015,"message":"Transaction execution error.","data":"NotEnoughBaseGas { required: 53000, got: 50000 }"},"id":"c31e5d5f401bea24cf8b40340f532cee"}.

I get the error NotEnoughBaseGas when calling:

$ curl --data '{"method":"eth_estimateGas","params":[{"from":"0x004702bdc..028600"}],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
{"jsonrpc":"2.0","error":{"code":-32015,"message":"Transaction execution error.","data":"NotEnoughBaseGas { required: 0xcf08, got: 0xc350 }"},"id":1}

a workaround is to specify the gas, but the default one should be higher.

Metadata

Metadata

Assignees

No one assigned

    Labels

    F3-annoyance 💩The client behaves within expectations, however this “expected behaviour” itself is at issue.M6-rpcapi 📣RPC API.P5-sometimesoon 🌲Issue is worth doing soon.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions