-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Light client jsonrpc eth_gasPrice returning 0 #10437
Comments
Hey, @tdrml is that the exact request you are sending? |
Hi, @joshua-mir here's my curl: curl --data '{"method":"eth_gasPrice","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545 response: {"jsonrpc":"2.0","result":"0x0","id":1} eth_blockNumber works fine curl --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545 {"jsonrpc":"2.0","result":"0x6f1184","id":1} |
@joshua-mir FYI - after 24+ hours of returning 0, I am now getting 18gwei (no restart or changes from me) which is well above ethgasstation, but I understand that parity has an entirely different algo for calculating gas price. Looks like returning 0 is an intermittent issue. EDIT: more like it intermittently works. My application checks the gas price about once an hour. Over the last 111 queries only 2 were not 0. |
I have the same problem in my side-chain using parity clients:
I am using this client: |
Currently, we only read the local cache to get the gas_price when it is |
running with following options: --light --jsonrpc-apis all --pruning archive
curl --data '{"method":"eth_gasPrice","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
actual
{"jsonrpc":"2.0","result":"0x0","id":1}
expected behavior
a result greater than 0.
The text was updated successfully, but these errors were encountered: