mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-14 22:01:20 +00:00
enterNewRound on HasAll
This commit is contained in:
@ -655,10 +655,10 @@ func (cs *ConsensusState) timeoutRoutine() {
|
|||||||
if ti.Step > 0 && newti.Step <= ti.Step {
|
if ti.Step > 0 && newti.Step <= ti.Step {
|
||||||
// if we got here because we have all the votes,
|
// if we got here because we have all the votes,
|
||||||
// fire the tock now instead of waiting for the timeout
|
// fire the tock now instead of waiting for the timeout
|
||||||
if skipTimeoutCommit(newti) {
|
/*if skipTimeoutCommit(newti) {
|
||||||
cs.timeoutTicker.Stop()
|
cs.timeoutTicker.Stop()
|
||||||
go func(t timeoutInfo) { cs.tockChan <- t }(newti)
|
go func(t timeoutInfo) { cs.tockChan <- t }(newti)
|
||||||
}
|
}*/
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1471,7 +1471,8 @@ func (cs *ConsensusState) addVote(vote *types.Vote, peerKey string) (added bool,
|
|||||||
// if we have all the votes now,
|
// if we have all the votes now,
|
||||||
// schedule the timeoutCommit to happen right away
|
// schedule the timeoutCommit to happen right away
|
||||||
// NOTE: this won't apply if only one validator
|
// NOTE: this won't apply if only one validator
|
||||||
cs.scheduleTimeout(time.Duration(0), cs.Height, 0, RoundStepNewHeight)
|
// cs.scheduleTimeout(time.Duration(0), cs.Height, 0, RoundStepNewHeight)
|
||||||
|
cs.enterNewRound(cs.Height, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user