mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
eth/protocols/eth: remove use of RawList.Empty
This commit is contained in:
parent
457b8c9391
commit
e3af26e0bf
1 changed files with 1 additions and 1 deletions
|
|
@ -424,7 +424,7 @@ func hashBodyParts(items []BlockBody) BlockBodyHashes {
|
|||
txsList := newDerivableRawList(&body.Transactions, writeTxForHash)
|
||||
h.TransactionRoots[i] = types.DeriveSha(txsList, hasher)
|
||||
// uncles
|
||||
if body.Uncles.Empty() {
|
||||
if body.Uncles.Len() == 0 {
|
||||
h.UncleHashes[i] = types.EmptyUncleHash
|
||||
} else {
|
||||
h.UncleHashes[i] = crypto.Keccak256Hash(body.Uncles.Bytes())
|
||||
|
|
|
|||
Loading…
Reference in a new issue