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

@ -28,7 +28,7 @@ func CreateRandomPeer(outbound bool) *peer {
ID: netAddr.ID,
ListenAddr: netAddr.DialString(),
},
mconn: &conn.MConnection{},
mconn: &conn.MConnection{},
metrics: NopMetrics(),
}
p.SetLogger(log.TestingLogger().With("peer", addr))