This repository was archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
eth_estimateGas returns "The execution failed due to an exception." #9669
Copy link
Copy link
Closed
Labels
F2-bug 🐞The client fails to follow expected behavior.The client fails to follow expected behavior.M6-rpcapi 📣RPC API.RPC API.P5-sometimesoon 🌲Issue is worth doing soon.Issue is worth doing soon.
Milestone
Description
Before filing a new issue, please provide the following information.
- Parity Ethereum version: 2.2
- Operating system: Linux
- Installation: edit:built on master
- Fully synchronized: yes
- Network: kovan
Edit:
Running eth_estimateGas
RPC against a full node returns "The execution failed due to an exception." :
Example:
2018-10-15 17:49:00 TRACE rpc Request: {"id":204,"jsonrpc":"2.0","method":"eth_estimateGas","params":[{"to":"0x4a6e6c3868a279e1d9047b42c3fb356ff4680003","gasPrice":"0x1faa3b500","data":"0xa9059cbb000000000000000000000000004702bdcc3c7dbffd943136107e70b82702860000000000000000000000000000dfc93112abd2578503b667b95491b101281f2b"}]}.
2018-10-15 17:49:00 DEBUG rpc Response: {"jsonrpc":"2.0","error":{"code":-32016,"message":"The execution failed due to an exception."},"id":204}.
Message before edit, (not relevant for full nodes)
eth_getTransactionReceipt
returns Timeout for On-demand query; 1 query attempts remain for query #0"
Running a full node on this branch connected as reserved-only
to a light client (also on the same branch).
Here is the rpc trace, what happens is that I send a Tx and check for the request:
2018-09-28 09:20:04 TRACE rpc Request: {"id":279,"jsonrpc":"2.0","method":"parity_postTransaction","params":[{"to":"0x4a6e6c3868a279e1d9047b42c3fb356ff4680003","data":"0x23b872dd00000000000000000000000000dfc93112abd2578503b667b95491b101281f2b000000000000000000000000004702bdcc3c7dbffd943136107e70b82702860000000000000000000000000000000000000000000000021e19e0c9bab2400000","gasPrice":"0x1836e2100"}]}.
2018-09-28 09:20:04 DEBUG rpc Response: {"jsonrpc":"2.0","result":"0x1","id":279}.
2018-09-28 09:20:04 TRACE rpc Request: {"id":280,"jsonrpc":"2.0","method":"signer_confirmRequest","params":["0x1",{},"ptTf4igch#e"]}.
2018-09-28 09:20:04 TRACE rpc Request: {"id":281,"jsonrpc":"2.0","method":"parity_checkRequest","params":["0x1"]}.
2018-09-28 09:20:04 DEBUG rpc Response: {"jsonrpc":"2.0","result":null,"id":281}.
2018-09-28 09:20:04 DEBUG rpc [Some(Num(280))] Took 11ms
2018-09-28 09:20:04 DEBUG rpc Response: {"jsonrpc":"2.0","result":"0x62151aed6d362d52d20634207c4c5adbb94bb427a0f1e813fae06333979d31f8","id":280}.
2018-09-28 09:20:04 TRACE rpc Request: {"id":282,"jsonrpc":"2.0","method":"parity_chain","params":[]}.
2018-09-28 09:20:04 DEBUG rpc Response: {"jsonrpc":"2.0","result":"kovan","id":282}.
2018-09-28 09:20:04 TRACE rpc Request: {"id":283,"jsonrpc":"2.0","method":"parity_chain","params":[]}.
2018-09-28 09:20:04 DEBUG rpc Response: {"jsonrpc":"2.0","result":"kovan","id":283}.
2018-09-28 09:20:04 TRACE rpc Request: {"id":284,"jsonrpc":"2.0","method":"parity_checkRequest","params":["0x1"]}.
2018-09-28 09:20:04 DEBUG rpc Response: {"jsonrpc":"2.0","result":"0x62151aed6d362d52d20634207c4c5adbb94bb427a0f1e813fae06333979d31f8","id":284}.
Once parity_checkRequest
answers with the Tx id, we check the receipt, and that's were things go south:
2018-09-28 09:20:04 TRACE rpc Request: {"id":285,"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x62151aed6d362d52d20634207c4c5adbb94bb427a0f1e813fae06333979d31f8"]}.
2018-09-28 09:20:07 TRACE rpc Request: {"id":286,"jsonrpc":"2.0","method":"net_peerCount","params":[]}.
2018-09-28 09:20:07 DEBUG rpc Response: {"jsonrpc":"2.0","result":"0x1","id":286}.
2018-09-28 09:20:12 Verifier #1 INFO import Imported #8884968 0x781b…bba0 (0.29 Mgas)
2018-09-28 09:20:12 TRACE rpc Request: {"id":287,"jsonrpc":"2.0","method":"net_peerCount","params":[]}.
2018-09-28 09:20:12 DEBUG rpc Response: {"jsonrpc":"2.0","result":"0x1","id":287}.
2018-09-28 09:20:15 DEBUG rpc [Some(Num(285))] Took 11127ms
2018-09-28 09:20:15 DEBUG rpc Response: {"jsonrpc":"2.0","error":{"code":-32065,"message":"Timeout for On-demand query; 1 query attempts remain for query #0"},"id":285}.
Here is a similar trace with pip
, on_demand
and rpc
.
Metadata
Metadata
Assignees
Labels
F2-bug 🐞The client fails to follow expected behavior.The client fails to follow expected behavior.M6-rpcapi 📣RPC API.RPC API.P5-sometimesoon 🌲Issue is worth doing soon.Issue is worth doing soon.