eth/protocols/eth: remove use of RawList.Empty

This commit is contained in:
Felix Lange 2026-02-13 22:32:20 +01:00
parent 457b8c9391
commit e3af26e0bf

View file

@ -424,7 +424,7 @@ func hashBodyParts(items []BlockBody) BlockBodyHashes {
txsList := newDerivableRawList(&body.Transactions, writeTxForHash) txsList := newDerivableRawList(&body.Transactions, writeTxForHash)
h.TransactionRoots[i] = types.DeriveSha(txsList, hasher) h.TransactionRoots[i] = types.DeriveSha(txsList, hasher)
// uncles // uncles
if body.Uncles.Empty() { if body.Uncles.Len() == 0 {
h.UncleHashes[i] = types.EmptyUncleHash h.UncleHashes[i] = types.EmptyUncleHash
} else { } else {
h.UncleHashes[i] = crypto.Keccak256Hash(body.Uncles.Bytes()) h.UncleHashes[i] = crypto.Keccak256Hash(body.Uncles.Bytes())