mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
core/rawdb: improve comment
This commit is contained in:
parent
94b7b6994e
commit
bcd46db053
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue