-
Notifications
You must be signed in to change notification settings - Fork 20.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web3j.getGasPrice #22705
Comments
Just tried it on one of our nodes, returned 209 Gwei. Re you sure the node you're querying is in sync? |
Ran it against all of our bootnodes, 6 returned 206 gwei, and one which is not synced returned 1 gwei. |
We found that occasionally a very low gasPrice will be returned at a very small stage. Our node is the latest version and synchronized to the latest block. We are also very confused, so we ask for your help. |
If you have the conditions, please monitor for a longer time, such as whether there is this problem in two days, we will continue to observe the problem |
Faced the same issue a few times. I have also found a correlation between extremely low fees and mined blocks with 0 transactions: I do see this comment: go-ethereum/eth/gasprice/gasprice.go Lines 182 to 185 in cc33398
but not sure where exactly the case with 0 length TXs blocks is handled in the function. Might it be the root reason for these random drops? |
I would like to chime in here and report that this has been an issue for us for months, and is still ongoing on the latest version of |
Hi guys. A friend encountered a similar problem above, please verify the situation, please @karalabe |
Verification of this bug requires polling a geth node once every minute for a couple days until congestion occurs. I think it has to do with blocks, so maybe even polling / gathering data once every 15 seconds would be better to find any issues sooner. |
Can you share some recent "dips"... I think this is a constant issue among all instances. So it definitely has to do with the blocks. Our most recent dips that were consitent across all of our instances were 2021/04/22 08:47:00 UTC (dip to 6 gwei from 112 gwei) |
I think you probably have similar dips. Our polling job polls all of the instances in sequence, but in general the requests should only be a few ms off for us... maybe if your jobs are off by 30 seconds etc. then maybe it won't be exactly the same but I am interested to see if you have dips at similar time. |
No, that should not be posslbe. Any given segment of blocks should lead to a totally deterministic gas oracle. If I'm wrong about this, it's a bug which needs to be fixed. I'm 99% certain that if I replay the GPO on the segment used in the charts above, looking only at the actual transactions that were included in the blocks, I would get an identical chart. |
For instances of this occurring I walked the chain to get the gas price at each block. Here's a block where I saw an unusually low gas price:
That's a lot of zero or one wei gas prices. It makes sense though, given we grab the cheapest transactions from the blocks instead of sampling a random set of transactions from the blocks we're using in the estimate: go-ethereum/eth/gasprice/gasprice.go Line 198 in 34f3c95
Here's links to a few of these transactions to confirm I'm not misreading them and perhaps see how they ended up in a block to begin with: |
The gasPrice of the main network is more than 300 Gwei, but web3j.getGasPrice is obtained from our latest version of the full node and occasionally returns 6 or 2. What is the problem?
The text was updated successfully, but these errors were encountered: