good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 08379b55 authored by Evolution404's avatar Evolution404 Committed by GitHub
Browse files

trie: remove the duplicate batch-write for 'preimage' (#23001)

parent 92b8f28d
No related branches found
No related tags found
No related merge requests found
......@@ -703,12 +703,6 @@ func (db *Database) Commit(node common.Hash, report bool, callback func(common.H
// Move all of the accumulated preimages into a write batch
if db.preimages != nil {
rawdb.WritePreimages(batch, db.preimages)
if batch.ValueSize() > ethdb.IdealBatchSize {
if err := batch.Write(); err != nil {
return err
}
batch.Reset()
}
// Since we're going to replay trie node writes into the clean cache, flush out
// any batched pre-images before continuing.
if err := batch.Write(); err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment