core: tune "blockchain persist completed" message

It's misleading, we're writing it on disk-level persistence, it's not the same
as block "persistence" in C#, so we better write it clear.
This commit is contained in:
Roman Khimov 2021-04-07 15:36:42 +03:00
parent 453012ff16
commit 1785a333d2

View file

@ -1092,9 +1092,9 @@ func (bc *Blockchain) persist() error {
if err != nil {
return err
}
bc.log.Info("blockchain persist completed",
zap.Uint32("persistedBlocks", diff),
zap.Int("persistedKeys", persisted),
bc.log.Info("persisted to disk",
zap.Uint32("blocks", diff),
zap.Int("keys", persisted),
zap.Uint32("headerHeight", storedHeaderHeight),
zap.Uint32("blockHeight", bHeight),
zap.Duration("took", time.Since(start)))