From 77e6ade9b47757f340a5a000650026f30f08fdec Mon Sep 17 00:00:00 2001 From: tianxiataiping <187100yang@163.com> Date: Wed, 8 Sep 2021 19:21:11 +0800 Subject: [PATCH] Merge PR: fix replay bug (#1013) Co-authored-by: fan.yang@okcoin.com --- cmd/exchaind/replay.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/exchaind/replay.go b/cmd/exchaind/replay.go index fff2d51abc..7815152a5c 100644 --- a/cmd/exchaind/replay.go +++ b/cmd/exchaind/replay.go @@ -173,13 +173,12 @@ func doReplay(ctx *server.Context, state sm.State, stateStoreDB dbm.DB, log.Println("origin latest block height", "height", originLatestBlockHeight) haltheight := haltBlockHeight - if haltheight <= startBlockHeight { - panic("haltheight <= startBlockHeight please check data or height") - } - if haltheight == 0 { haltheight = originLatestBlockHeight } + if haltheight <= startBlockHeight { + panic("haltheight <= startBlockHeight please check data or height") + } log.Println("replay stop block height", "height", haltheight)