core/rawdb: return iterator error in findTxInBlockBody

This commit is contained in:
radik878 2025-11-14 13:20:33 +02:00 committed by GitHub
parent aa36bcd0aa
commit 32b4c32034
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,7 +148,7 @@ func findTxInBlockBody(blockbody rlp.RawValue, target common.Hash) (*types.Trans
txIndex := uint64(0)
for iter.Next() {
if iter.Err() != nil {
return nil, 0, err
return nil, 0, iter.Err()
}
// The preimage for the hash calculation of legacy transactions
// is just their RLP encoding. For typed (EIP-2718) transactions,