Skip to content

Commit

Permalink
Fix race condition in istanbul core
Browse files Browse the repository at this point in the history
  • Loading branch information
piersy committed Nov 1, 2024
1 parent 8b5f9f4 commit 40b0de0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions consensus/istanbul/core/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ func (c *core) Start() error {
return err
}

c.currentMu.Lock()
c.current = roundState
c.currentMu.Unlock()
c.roundChangeSetV2 = newRoundChangeSetV2(c.current.ValidatorSet())

// Reset the Round Change timer for the current round to timeout.
Expand Down

0 comments on commit 40b0de0

Please sign in to comment.