mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
triedb: reset state indexer to 0
Signed-off-by: Delweng <delweng@gmail.com>
This commit is contained in:
parent
389f2f1cbc
commit
200aa9453b
1 changed files with 2 additions and 0 deletions
|
|
@ -512,6 +512,8 @@ func (db *Database) Enable(root common.Hash) error {
|
||||||
if err := db.freezer.Reset(); err != nil {
|
if err := db.freezer.Reset(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
// Reset the state history indexer
|
||||||
|
storeIndexMetadata(db.diskdb, 0)
|
||||||
}
|
}
|
||||||
// Re-enable the database as the final step.
|
// Re-enable the database as the final step.
|
||||||
db.waitSync = false
|
db.waitSync = false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue