Skip to content

Commit 7b90885

Browse files
authored
Merge pull request #2567 from CortexFoundation/dev
return iterator error in findTxInBlockBody
2 parents 0a44420 + af8818f commit 7b90885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/rawdb/accessors_indexes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func findTxInBlockBody(blockbody rlp.RawValue, target common.Hash) (*types.Trans
147147
txIndex := uint64(0)
148148
for iter.Next() {
149149
if iter.Err() != nil {
150-
return nil, 0, err
150+
return nil, 0, iter.Err()
151151
}
152152
// The preimage for the hash calculation of legacy transactions
153153
// is just their RLP encoding. For typed (EIP-2718) transactions,

0 commit comments

Comments
 (0)