From 3eb069a50c176b37efa429b69a221afe9eaa2841 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Thu, 30 Nov 2017 19:29:12 -0600 Subject: [PATCH] no need in this hack since we have replay now --- blockchain/reactor.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/blockchain/reactor.go b/blockchain/reactor.go index 828ec73ec..9f3bcb82a 100644 --- a/blockchain/reactor.go +++ b/blockchain/reactor.go @@ -54,9 +54,6 @@ type BlockchainReactor struct { // NewBlockchainReactor returns new reactor instance. func NewBlockchainReactor(state *sm.State, proxyAppConn proxy.AppConnConsensus, store *BlockStore, fastSync bool) *BlockchainReactor { - if state.LastBlockHeight == store.Height()-1 { - store.height-- // XXX HACK, make this better - } if state.LastBlockHeight != store.Height() { cmn.PanicSanity(cmn.Fmt("state (%v) and store (%v) height mismatch", state.LastBlockHeight, store.Height())) }