core: adjust info message for proper-stated chains

Make it prettier for those cases when `db reset` command was called
after interrupted reset.
This commit is contained in:
Anna Shaleva 2022-11-20 21:05:20 +03:00
parent b82374823e
commit b27a9bcf95

View file

@ -683,7 +683,7 @@ func (bc *Blockchain) resetStateInternal(height uint32, stage stateChangeStage)
return fmt.Errorf("current block height is %d, can't reset state to height %d", currHeight, height)
}
if height == currHeight {
bc.log.Info("chain is already at the proper state", zap.Uint32("height", height))
bc.log.Info("chain is at the proper state", zap.Uint32("height", height))
return nil
}
if bc.config.KeepOnlyLatestState {