mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
eth/protocols/eth: unpack receipts correctly
This commit is contained in:
parent
156ad98469
commit
d86f0547cf
1 changed files with 3 additions and 1 deletions
|
|
@ -455,7 +455,9 @@ 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
|
||||||
r = append(r, receipts...)
|
for _, receipt := range receipts {
|
||||||
|
r = append(r, (*types.Receipt)(receipt))
|
||||||
|
}
|
||||||
hashes[i] = types.DeriveSha(types.Receipts(r), hasher)
|
hashes[i] = types.DeriveSha(types.Receipts(r), hasher)
|
||||||
}
|
}
|
||||||
return hashes
|
return hashes
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue