This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Taking a long time for executing estimate_gas of tx with infinite loop. #7074
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.
Milestone
When estimate_gas of tx with infinite loop was executed, RPC server returns no response for a long time.
In a following environment, it takes about 3 minutes for estimate_gas.
Tx with 1,000,000,000,000 gas was executed (https://github.com/paritytech/parity/blob/master/ethcore/src/client/client.rs#L1234), so it takes a long time.
A parity node owner should decide whether estimate_gas upper limit is a block gas limit or UPPER_CEILING(1,000,000,000,000) by config.
If I skipped estimate_gas execution with 1,000,000,000,000 gas, it takes about 80 msec.
The text was updated successfully, but these errors were encountered: