diff --git a/command/genesis/polybft_params.go b/command/genesis/polybft_params.go index f8a52c800d..44919807be 100644 --- a/command/genesis/polybft_params.go +++ b/command/genesis/polybft_params.go @@ -133,6 +133,7 @@ func (p *genesisParams) generatePolyBftChainConfig(o command.OutputFormatter) er Governance: initialValidators[0].Address, InitialTrieRoot: types.StringToHash(p.initialStateRoot), NativeTokenConfig: p.nativeTokenConfig, + MinValidatorSetSize: p.minNumValidators, MaxValidatorSetSize: p.maxNumValidators, RewardConfig: &polybft.RewardsConfig{ TokenAddress: rewardTokenAddr, diff --git a/consensus/polybft/polybft_config.go b/consensus/polybft/polybft_config.go index 84f7629aaa..b7b2e424d8 100644 --- a/consensus/polybft/polybft_config.go +++ b/consensus/polybft/polybft_config.go @@ -43,6 +43,9 @@ type PolyBFTConfig struct { // SupernetID indicates ID of given supernet generated by stake manager contract SupernetID int64 `json:"supernetID"` + // MinValidatorSetSize indicates the minimum size of validator set + MinValidatorSetSize uint64 `json:"minValidatorSetSize"` + // MaxValidatorSetSize indicates the maximum size of validator set MaxValidatorSetSize uint64 `json:"maxValidatorSetSize"`