1
0
Fork 0
forked from forks/go-ethereum
go-ethereum-modded-tocallarg/ethclient
Shude Li af9673b143
ethclient: fix retrieval of pending block (#31504)
Since the block hash is not returned for pending blocks, ethclient cannot unmarshal into RPC block. This makes hash optional on rpc block and compute the hash locally for pending blocks to correctly key the tx sender cache.


a82303f4e3/internal/ethapi/api.go (L500-L504)

---------

Co-authored-by: lightclient <lightclient@protonmail.com>
2025-05-02 07:19:54 -06:00
..
gethclient ethclient: allow passing AuthorizationList to calls (#31198) 2025-04-23 21:01:03 +02:00
simulated eth: add tx to locals only if it has a chance of acceptance (#31618) 2025-04-17 21:27:48 +02:00
ethclient.go ethclient: fix retrieval of pending block (#31504) 2025-05-02 07:19:54 -06:00
ethclient_test.go ethclient: fix retrieval of pending block (#31504) 2025-05-02 07:19:54 -06:00
example_test.go ethclient: add RevertErrorData function and example (#30669) 2024-11-07 20:26:02 +01:00
signer.go ethclient: fix tx sender cache miss detection (#23877) 2021-11-17 14:44:41 +01:00
types_test.go ethclient: add RevertErrorData function and example (#30669) 2024-11-07 20:26:02 +01:00