Skip to content

Commit

Permalink
update gov param max validators to 225
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng762 committed Nov 19, 2024
1 parent da0c036 commit beb7959
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x/plugin/gov_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ func (govPlugin *GovPlugin) BeginBlock(blockHash common.Hash, header *types.Head
}
log.Info("Successfully upgraded the new version 1.3.0", "blockNumber", blockNumber, "blockHash", blockHash, "preActiveProposalID", preActiveVersionProposalID)
}
if versionProposal.NewVersion == params.FORKVERSION_1_5_0 {
if err := gov.UpdateGovernParamValue(gov.ModuleStaking, gov.KeyMaxValidators, "225", blockNumber+1, blockHash); err != nil {
return err
}
log.Info("Successfully upgraded the new version 1.5.0", "blockNumber", blockNumber, "blockHash", blockHash)
}

log.Info("version proposal is active", "blockNumber", blockNumber, "proposalID", versionProposal.ProposalID, "newVersion", versionProposal.NewVersion, "newVersionString", xutil.ProgramVersion2Str(versionProposal.NewVersion))
}
Expand Down

0 comments on commit beb7959

Please sign in to comment.