Skip to content

Commit

Permalink
feat: journal nodebufferlist snapshot data for journal file recoering
Browse files Browse the repository at this point in the history
  • Loading branch information
VM committed Nov 22, 2024
1 parent 759f430 commit d1f94ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion triedb/pathdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func (db *Database) Enable(root common.Hash) error {
}
// Re-construct a new disk layer backed by persistent state
// with **empty clean cache and node buffer**.
nb, err := NewTrieNodeBuffer(db.diskdb, db.config.TrieNodeBufferType, db.bufferSize, nil, 0, db.config.ProposeBlockInterval,
nb, err := NewTrieNodeBuffer(db.diskdb, db.config.TrieNodeBufferType, db.bufferSize, nil, nil, 0, db.config.ProposeBlockInterval,
db.config.NotifyKeep, db.freezer, false, false)
if err != nil {
log.Error("Failed to new trie node buffer", "error", err)
Expand Down

0 comments on commit d1f94ea

Please sign in to comment.