consensus: Wait timeout precommit before starting new round (#2493)

* Disable transitioning to new round upon 2/3+ of Precommit nils

Pull in ensureVote test function from https://github.com/tendermint/tendermint/pull/2132

* Add several ensureX test methods to wrap channel read with timeout

* Revert panic in tests
This commit is contained in:
Zarko Milosevic
2018-10-04 15:37:13 +02:00
committed by Ethan Buchman
parent cb2e58411f
commit 12675ecd92
10 changed files with 225 additions and 140 deletions

View File

@@ -55,7 +55,7 @@ func NewConsensusReactor(consensusState *ConsensusState, fastSync bool, options
conR := &ConsensusReactor{
conS: consensusState,
fastSync: fastSync,
metrics: NopMetrics(),
metrics: NopMetrics(),
}
conR.updateFastSyncingMetric()
conR.BaseReactor = *p2p.NewBaseReactor("ConsensusReactor", conR)