Browse Source

no need in this hack since we have replay now

pull/914/head
Anton Kaliaev 7 years ago
committed by Ethan Buchman
parent
commit
3eb069a50c
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      blockchain/reactor.go

+ 0
- 3
blockchain/reactor.go 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()))
}


Loading…
Cancel
Save