System information
go-ethereum 1.16.1
Expected behaviour
Log.BlockTimestamp is never 0
Actual behaviour
Log.BlockTimestamp is 0 for some eth methods
Steps to reproduce the behaviour
- call
ethclient.BlockReceipts for any block (https://ethereum-rpc.publicnode.com/ was used as RPC node)
- inspect a
Log for some Receipt
Workaround
Get block timestamp from Header, e.g. via ethclient.HeaderByNumber Is this the most "lightweight" call as of today to get a timestamp of a block?
Additional info
Probably related #31887 (comment)