We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2f493b commit 3730ecfCopy full SHA for 3730ecf
consensus/istanbul/core/core.go
@@ -246,7 +246,8 @@ func (c *core) newRoundChangeTimer() {
246
c.roundChangeTimer.Stop()
247
}
248
249
- timeout := time.Duration(c.config.RequestTimeout) * time.Millisecond
+ // set timeout based on the round number
250
+ timeout := time.Duration(c.config.RequestTimeout)*time.Millisecond + time.Duration(c.current.Round().Uint64()*c.config.BlockPeriod)*time.Second
251
c.roundChangeTimer = time.AfterFunc(timeout, func() {
252
// If we're not waiting for round change yet, we can try to catch up
253
// the max round with F+1 round change message. We only need to catch up
0 commit comments