use channels to send votes, ... from consensus state to reactor

Refs #847
This commit is contained in:
Anton Kaliaev
2018-05-15 14:32:06 +04:00
parent bf6527fc59
commit 21f5f3faa7
3 changed files with 57 additions and 54 deletions

View File

@ -264,7 +264,7 @@ func newConsensusStateWithConfigAndBlockStore(thisConfig *cfg.Config, state sm.S
// mock the evidence pool
evpool := types.MockEvidencePool{}
// Make ConsensusReactor
// Make ConsensusState
stateDB := dbm.NewMemDB()
blockExec := sm.NewBlockExecutor(stateDB, log.TestingLogger(), proxyAppConnCon, mempool, evpool)
cs := NewConsensusState(thisConfig.Consensus, state, blockExec, blockStore, mempool, evpool)