diff --git a/database/rawdb/accessors_chain.go b/database/rawdb/accessors_chain.go index 47787430..176b4ea8 100644 --- a/database/rawdb/accessors_chain.go +++ b/database/rawdb/accessors_chain.go @@ -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 }