diff --git a/triedb/pathdb/journal.go b/triedb/pathdb/journal.go index 027c36bdb..2b92d4f39 100644 --- a/triedb/pathdb/journal.go +++ b/triedb/pathdb/journal.go @@ -354,6 +354,7 @@ func (db *Database) loadDiskLayer(r *rlp.Stream, journalTypeForReader JournalTyp return nil, fmt.Errorf("failed to load disk nodes: %v", err) } nodes = make(map[common.Hash]map[string]*trienode.Node) + // todo: use flatten function for _, entry := range encoded { subset := make(map[string]*trienode.Node) for _, n := range entry.Nodes { diff --git a/triedb/pathdb/nodebufferlist.go b/triedb/pathdb/nodebufferlist.go index 77302914c..7920662bc 100644 --- a/triedb/pathdb/nodebufferlist.go +++ b/triedb/pathdb/nodebufferlist.go @@ -594,6 +594,11 @@ func (nf *nodebufferlist) getMultiLayerNodes() []nblJournalData { return true } nf.traverseReverse(merge) + + for i, val := range nodesArray { + log.Info("print multi layers node info", "index", i, "root", val.root, "layers", val.layers, + "size", val.size) + } return nodesArray }