From a223ee6c27e8cd2a40322a8d00132f983f24a405 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 18 Mar 2025 17:24:37 +0100 Subject: [PATCH] core/rawdb: log error for invalid txindex entry --- core/rawdb/chain_iterator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/rawdb/chain_iterator.go b/core/rawdb/chain_iterator.go index dd9d6a9dfb..d17b3e7ddf 100644 --- a/core/rawdb/chain_iterator.go +++ b/core/rawdb/chain_iterator.go @@ -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 {