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:
parent
b82374823e
commit
b27a9bcf95
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
return fmt.Errorf("current block height is %d, can't reset state to height %d", currHeight, height)
|
||||||
}
|
}
|
||||||
if height == currHeight {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
if bc.config.KeepOnlyLatestState {
|
if bc.config.KeepOnlyLatestState {
|
||||||
|
|
Loading…
Reference in a new issue