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 { if err != nil {
return err return err
} }
bc.log.Info("blockchain persist completed", bc.log.Info("persisted to disk",
zap.Uint32("persistedBlocks", diff), zap.Uint32("blocks", diff),
zap.Int("persistedKeys", persisted), zap.Int("keys", persisted),
zap.Uint32("headerHeight", storedHeaderHeight), zap.Uint32("headerHeight", storedHeaderHeight),
zap.Uint32("blockHeight", bHeight), zap.Uint32("blockHeight", bHeight),
zap.Duration("took", time.Since(start))) zap.Duration("took", time.Since(start)))