mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
core/rawdb: log error for invalid txindex entry
This commit is contained in:
parent
403e64ce75
commit
a223ee6c27
1 changed files with 2 additions and 1 deletions
|
|
@ -373,7 +373,8 @@ func PruneTransactionIndex(db ethdb.Database, pruneBlock uint64) {
|
|||
for iter.Next() {
|
||||
v := iter.Value()
|
||||
if len(v) > 8 {
|
||||
continue // legacy entry
|
||||
log.Error("Skipping prune legacy tx index entry", "hash", fmt.Sprintf("%x", iter.Key()))
|
||||
continue
|
||||
}
|
||||
bn := decodeNumber(v)
|
||||
if bn < pruneBlock {
|
||||
|
|
|
|||
Loading…
Reference in a new issue