ethclient: fixup comment

This commit is contained in:
lightclient 2025-05-01 14:13:10 -06:00
parent fc341f484d
commit 0d10a01ef8
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -158,8 +158,7 @@ func (ec *Client) getBlock(ctx context.Context, method string, args ...interface
if err := json.Unmarshal(raw, &body); err != nil {
return nil, err
}
// Pending blocks do not return a block hash, set it to empty hash explicitly
// for sender caching.
// Pending blocks don't return a block hash, compute it for sender caching.
if body.Hash == nil {
tmp := head.Hash()
body.Hash = &tmp