From a8873566fa14c87cbd75c0278509d2daa2c4a9e2 Mon Sep 17 00:00:00 2001 From: VM Date: Mon, 23 Dec 2024 16:28:28 +0800 Subject: [PATCH] fix: flush base buffer after recovering node buffer list --- triedb/pathdb/nodebufferlist.go | 1 + 1 file changed, 1 insertion(+) diff --git a/triedb/pathdb/nodebufferlist.go b/triedb/pathdb/nodebufferlist.go index 0fe2b1c68..67ca59cbc 100644 --- a/triedb/pathdb/nodebufferlist.go +++ b/triedb/pathdb/nodebufferlist.go @@ -224,6 +224,7 @@ func (nf *nodebufferlist) recoverNodeBufferList(freezer *rawdb.ResettableFreezer nf.layers += current.layers } nf.diffToBase() + nf.backgroundFlush() log.Info("Succeed to recover node buffer list", "base_size", nf.base.size, "tail_state_id", nf.tail.id, "head_state_id", nf.head.id, "nbl_layers", nf.layers, "base_layers", nf.base.layers)