mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
ethclient: fixup comment
This commit is contained in:
parent
fc341f484d
commit
0d10a01ef8
1 changed files with 1 additions and 2 deletions
|
|
@ -158,8 +158,7 @@ func (ec *Client) getBlock(ctx context.Context, method string, args ...interface
|
||||||
if err := json.Unmarshal(raw, &body); err != nil {
|
if err := json.Unmarshal(raw, &body); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
// Pending blocks do not return a block hash, set it to empty hash explicitly
|
// Pending blocks don't return a block hash, compute it for sender caching.
|
||||||
// for sender caching.
|
|
||||||
if body.Hash == nil {
|
if body.Hash == nil {
|
||||||
tmp := head.Hash()
|
tmp := head.Hash()
|
||||||
body.Hash = &tmp
|
body.Hash = &tmp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue