From d2494eda29b736e64fa77c663ff480d3713d0aca Mon Sep 17 00:00:00 2001 From: VM Date: Sat, 23 Nov 2024 18:30:26 +0800 Subject: [PATCH] feat: journal nodebufferlist snapshot data for journal file recovering --- triedb/pathdb/journal.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/triedb/pathdb/journal.go b/triedb/pathdb/journal.go index 2b92d4f39..011a5b74b 100644 --- a/triedb/pathdb/journal.go +++ b/triedb/pathdb/journal.go @@ -347,6 +347,10 @@ func (db *Database) loadDiskLayer(r *rlp.Stream, journalTypeForReader JournalTyp if err := journalBuf.Decode(&nodesArray); err != nil { return nil, fmt.Errorf("11 failed to load disk nodes: %v", err) } + for i, val := range nodesArray { + log.Info("print journal decode layers node info", "index", i, "root", val.root, "layers", val.layers, + "size", val.size) + } } else { // Resolve nodes cached in node buffer var encoded []journalNodes