Skip to content

Commit

Permalink
BUG:About foreach utxo
Browse files Browse the repository at this point in the history
  • Loading branch information
lochjin committed Nov 15, 2023
1 parent 525d3f2 commit 0d45fae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/rawdb/accessors_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ func ForeachUtxo(db ethdb.KeyValueStore, fn func(opd []byte, data []byte) error)
defer it.Release()

for it.Next() {
err := fn(it.Key(), it.Value())
op := it.Key()[len(utxoPrefix):]
err := fn(op, it.Value())
if err != nil {
return err
}
Expand Down

0 comments on commit 0d45fae

Please sign in to comment.