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.
2 parents db82eaf + 9262ff5 commit 88d667bCopy full SHA for 88d667b
consensus/istanbul/core/core.go
@@ -316,7 +316,7 @@ func (c *core) newRoundChangeTimer() {
316
c.stopTimer()
317
318
// set timeout based on the round number
319
- t := uint64(math.Pow(2, float64(c.current.Round().Uint64()))) * c.config.RequestTimeout
+ t := c.config.RequestTimeout + uint64(math.Pow(2, float64(c.current.Round().Uint64())))
320
timeout := time.Duration(t) * time.Millisecond
321
c.roundChangeTimer = time.AfterFunc(timeout, func() {
322
c.sendEvent(timeoutEvent{})
consensus/istanbul/core/handler.go
@@ -38,6 +38,7 @@ func (c *core) Start() error {
38
func (c *core) Stop() error {
39
40
c.unsubscribeEvents()
41
+ c.current = nil
42
return nil
43
}
44
0 commit comments