eth/protocols/eth: lint

This commit is contained in:
Marius van der Wijden 2025-03-14 13:26:21 +01:00 committed by Felix Lange
parent 5e94e51e95
commit 156ad98469

View file

@ -455,9 +455,7 @@ func handleReceipts69(backend Backend, msg Decoder, peer *Peer) error {
hashes := make([]common.Hash, len(response)) hashes := make([]common.Hash, len(response))
for i, receipts := range response { for i, receipts := range response {
var r []*types.Receipt var r []*types.Receipt
for _, receipt := range receipts { r = append(r, receipts...)
r = append(r, receipt)
}
hashes[i] = types.DeriveSha(types.Receipts(r), hasher) hashes[i] = types.DeriveSha(types.Receipts(r), hasher)
} }
return hashes return hashes