mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
core/rawdb: improve logs
This commit is contained in:
parent
bcd46db053
commit
a20cdbc6f9
1 changed files with 2 additions and 2 deletions
|
|
@ -387,13 +387,13 @@ func PruneTransactionIndex(db ethdb.Database, pruneBlock uint64) {
|
|||
count++
|
||||
v := iter.Value()
|
||||
if len(v) > 8 {
|
||||
log.Error("Skipping prune legacy tx index entry", "hash", fmt.Sprintf("%x", iter.Key()))
|
||||
log.Error("Skipping legacy tx index entry", "hash", fmt.Sprintf("%x", iter.Key()))
|
||||
continue
|
||||
}
|
||||
bn := decodeNumber(v)
|
||||
if bn < pruneBlock {
|
||||
if err := db.Delete(iter.Key()); err != nil {
|
||||
log.Crit("Error deleting tx lookup entry", "hash", fmt.Sprintf("%x", iter.Key()))
|
||||
log.Crit("Error deleting tx index entry", "hash", fmt.Sprintf("%x", iter.Key()))
|
||||
}
|
||||
removed++
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue