core/rawdb: improve comment

This commit is contained in:
Felix Lange 2025-03-18 21:44:09 +01:00
parent 94b7b6994e
commit bcd46db053

View file

@ -374,9 +374,9 @@ func PruneTransactionIndex(db ethdb.Database, pruneBlock uint64) {
return // index ends above pruneBlock return // index ends above pruneBlock
} }
// There are transactions below pruneBlock in the index. Iterate the entire index to // There are blocks below pruneBlock in the index. Iterate the entire index to remove
// remove the entries. Note if this fails, the index is messed up, but tail still // their entries. Note if this fails, the index is messed up, but tail still points to
// points to the old tail. // the old tail.
var ( var (
iter = db.NewIterator(txLookupPrefix, nil) iter = db.NewIterator(txLookupPrefix, nil)
count int count int