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
). This can result in eth_call being called on a different block than the intended block in the case of a reorg.
How can it be fixed?
Raise an exception if a block hash is supplied to call instead of modifying user input
Make an EIP to change the JSON RPC to accept block hash in addition to QUANTITY|TAG. Then just pass the block hash through instead of changing user input.
The text was updated successfully, but these errors were encountered:
Make an EIP to change the JSON RPC to accept block hash in addition to QUANTITY|TAG. Then just pass the block hash through instead of changing user input.
Cf. ethereum/EIPs#1898, could be a ways until this is implemented by nodes though.
What was wrong?
When a block hash is supplied as the block identifier, web3.py replaces the block param with that block's number (cf.
web3.py/web3/contract.py
Line 1343 in 652650d
eth_call
being called on a different block than the intended block in the case of a reorg.How can it be fixed?
call
instead of modifying user inputThe text was updated successfully, but these errors were encountered: