no need in this hack since we have replay now

This commit is contained in:
Anton Kaliaev
2017-11-30 19:29:12 -06:00
committed by Ethan Buchman
parent f1fbf995f7
commit 3eb069a50c

View File

@@ -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()))
}