mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-28 21:51:22 +00:00
fix TestReactorCreatesBlockWhenEmptyBlocksFalse
by checking if we have LastCommit or not
This commit is contained in:
parent
aea2fb7a75
commit
0314ff2605
@ -757,7 +757,7 @@ func (cs *ConsensusState) handleTxsAvailable() {
|
||||
cs.mtx.Lock()
|
||||
defer cs.mtx.Unlock()
|
||||
|
||||
if cs.config.SkipTimeoutCommit && cs.LastCommit.HasAll() {
|
||||
if cs.config.SkipTimeoutCommit && cs.LastCommit != nil && cs.LastCommit.HasAll() {
|
||||
// we only need to do this for round 0
|
||||
cs.enterNewRound(cs.Height, 0)
|
||||
cs.enterPropose(cs.Height, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user