mirror of https://github.com/poanetwork/quorum.git
Streamline call to newRoundChangeTimer() (#109)
This commit is contained in:
parent
b58f1d326a
commit
26421dd4df
|
@ -187,9 +187,6 @@ func (c *core) handleTimeoutMsg() {
|
|||
nextRound := new(big.Int).Add(round, common.Big1)
|
||||
c.startNewRound(nextRound)
|
||||
|
||||
// Start the timer
|
||||
c.newRoundChangeTimer()
|
||||
|
||||
// Send Round Change
|
||||
c.sendRoundChange(nextRound)
|
||||
}
|
||||
|
|
|
@ -122,7 +122,6 @@ func (c *core) handleRoundChange(msg *message, src istanbul.Validator) error {
|
|||
newRound := c.roundChangeSet.getMinRoundChange(cv.Round)
|
||||
logger.Trace("Starting new Round", "round", newRound)
|
||||
c.startNewRound(newRound)
|
||||
c.newRoundChangeTimer()
|
||||
c.sendRoundChange(newRound)
|
||||
|
||||
} else if currentRoundMessages >= c.QuorumSize() && c.IsProposer() && c.justifyRoundChange(cv.Round) && c.current.preprepareSent.Cmp(cv.Round) < 0 {
|
||||
|
|
Loading…
Reference in New Issue