mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
core/rawdb: add delete error handling
This commit is contained in:
parent
45c8fe9f28
commit
ba740954c2
1 changed files with 3 additions and 1 deletions
|
|
@ -378,7 +378,9 @@ func PruneTransactionIndex(db ethdb.Database, pruneBlock uint64) {
|
|||
}
|
||||
bn := decodeNumber(v)
|
||||
if bn < pruneBlock {
|
||||
db.Delete(iter.Key())
|
||||
if err := db.Delete(iter.Key()); err != nil {
|
||||
log.Crit("Error deleting tx lookup entry", "hash", fmt.Sprintf("%x", iter.Key()))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue