diff --git a/core/state/snapshot/journal.go b/core/state/snapshot/journal.go index 98a93b4968e00..067de689e71d1 100644 --- a/core/state/snapshot/journal.go +++ b/core/state/snapshot/journal.go @@ -25,6 +25,7 @@ import ( "time" "github.com/VictoriaMetrics/fastcache" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/rawdb" "github.com/ethereum/go-ethereum/ethdb" @@ -113,7 +114,7 @@ func loadAndParseJournal(db ethdb.KeyValueStore, base *diskLayer) (snapshot, jou // It can happen that Geth crashes without persisting the latest // diff journal. if !bytes.Equal(root.Bytes(), base.root.Bytes()) { - log.Warn("Loaded snapshot journal", "diskroot", base.root, "diffs", "unmatched") + log.Debug("Loaded snapshot journal", "diskroot", base.root, "diffs", "unmatched") return base, generator, nil } // Load all the snapshot diffs from the journal diff --git a/core/state/snapshot/snapshot.go b/core/state/snapshot/snapshot.go index 0f00af47e18ff..230fa640d3b6d 100644 --- a/core/state/snapshot/snapshot.go +++ b/core/state/snapshot/snapshot.go @@ -826,6 +826,10 @@ func (t *Tree) generating() (bool, error) { return layer.genMarker != nil, nil } +func (t *Tree) Generating() (bool, error) { + return t.generating() +} + // diskRoot is a external helper function to return the disk layer root. func (t *Tree) DiskRoot() common.Hash { t.lock.Lock()