You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We request a block (for example, 95283117) through the official Ethereum client written in Golang. Due to the fact that the value in the gas field is too large number, the client cannot parse it (because it expects the number to be no more than 64 bits, as indicated by the error). Because of this, we are forced to skip blocks in our application.
Is it intentional or not? How should we handle this?
INFO[0000] block="<nil>" err="json: cannot unmarshal hex number > 64 bits into Go struct field rpcBlock.transactions of type hexutil.Uint64"
The text was updated successfully, but these errors were encountered:
HarmlessEvil
changed the title
Go-ethereum's ethclient can't parse some blocks due to the gas field being too big
Go-ethereum's ethclient can't parse some blocks due to the value in the gas field being too big
Jul 25, 2022
I think the issue is coming from this transaction in the block, rather than the block itself. So one possible work-around would be to only get the block header, instead of getting all the transaction data.
We request a block (for example,
95283117
) through the official Ethereum client written in Golang. Due to the fact that the value in thegas
field is too large number, the client cannot parse it (because it expects the number to be no more than 64 bits, as indicated by the error). Because of this, we are forced to skip blocks in our application.Is it intentional or not? How should we handle this?
Here is the code to reproduce the issue:
And this is the result of the execution:
The text was updated successfully, but these errors were encountered: