Skip to content

Commit

Permalink
Fix validator selection mode on qbft config (#1570)
Browse files Browse the repository at this point in the history
fixes #1543
  • Loading branch information
antonydenyer authored Nov 28, 2022
1 parent a47ff47 commit bc1bf1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consensus/istanbul/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ func (c Config) GetValidatorContractAddress(blockNumber *big.Int) common.Address

func (c Config) GetValidatorSelectionMode(blockNumber *big.Int) string {
mode := params.BlockHeaderMode
if c.ValidatorSelectionMode != nil {
mode = *c.ValidatorSelectionMode
}
c.getTransitionValue(blockNumber, func(transition params.Transition) {
if transition.ValidatorSelectionMode != "" {
mode = transition.ValidatorSelectionMode
Expand Down

0 comments on commit bc1bf1f

Please sign in to comment.