-
Notifications
You must be signed in to change notification settings - Fork 1.7k
pending
for defaultBlock causes issues during estimateGas
#9288
Comments
Not only the |
I could reproduce the problem.
I did not reproduce with "latest" however. In general @iFA88, for a non mining node, "pending" will be the same as "latest" since your node is not creating any block. |
Can you have a look @tomusdrw ? |
I have forgot to say that I use the following parameters:
|
That's indeed important as |
@iFA88 I checked the code paths for Could you provide |
Ofc! |
Yeah, i'm trying to reproduce the error for |
Hi! I would like to report, that the bug is still available. I'm using
Request:
With If i want to send several transactions to the same contract I can not get how much gas should i attach it or even it throws/reverts or not. |
Indeed we don't have atomicity when we try to work on the pending state, so:
This code works most of the time, but in case you have We should replace the pending RPC apis with something that allows us to get a copy of pending state and then call into it so that it's not susceptible to races like that. |
closed by #11127 |
Greetings!
I have tried the following nodes:
Parity-Ethereum/v2.0.0-beta-6eae372-20180717/x86_64-linux-gnu/rustc1.27.1
Parity-Ethereum/v2.0.1-beta-e7dc0be-20180726/x86_64-linux-gnu/rustc1.27.2
where I have the same issue for
eth_estimateGas
when I usepending
for defaultBlock parameter:This happens not every time, about 1/5 times. Maybe it happens during the block import process.
When it works then I receive:
The text was updated successfully, but these errors were encountered: