Skip to content

Commit

Permalink
feat: journal nodebufferlist snapshot data for journal file recovering
Browse files Browse the repository at this point in the history
  • Loading branch information
VM committed Nov 23, 2024
1 parent e651fa7 commit d2494ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions triedb/pathdb/journal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2494ed

Please sign in to comment.