Streamline call to newRoundChangeTimer() (#109)

This commit is contained in:
Jitendra Bhurat 2020-06-03 10:31:12 -04:00 committed by GitHub
parent b58f1d326a
commit 26421dd4df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View File

@ -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)
}

View File

@ -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 {