From b27a9bcf95cfc8a80899c72c0b667200efe5c716 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Sun, 20 Nov 2022 21:05:20 +0300 Subject: [PATCH] core: adjust info message for proper-stated chains Make it prettier for those cases when `db reset` command was called after interrupted reset. --- pkg/core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 1c48946c4..ac3ac231b 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -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 {