Skip to content

Commit

Permalink
update for main net
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng762 committed Nov 26, 2024
1 parent 5fd5a79 commit b239eac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ var (
AllEthashProtocolChanges = &ChainConfig{big.NewInt(1337), PrivatePIP7ChainID, "lat", "", big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), &CbftConfig{Period: 3}, FORKVERSION_1_5_0, sync.RWMutex{}}

PrivatePIP7ChainID = new(big.Int).SetUint64(2203181)

MainPIP7ChainID = new(big.Int).SetUint64(210425)
)

// TrustedCheckpoint represents a set of post-processed trie roots (CHT and
Expand Down
2 changes: 1 addition & 1 deletion x/plugin/gov_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ 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 versionProposal.NewVersion == params.FORKVERSION_1_5_0 && govPlugin.chainConfig.PIP7ChainID.Cmp(params.MainPIP7ChainID) == 0 {
if err := gov.UpdateGovernParamValue(gov.ModuleStaking, gov.KeyMaxValidators, fmt.Sprint(xcom.MaxValidatorsForVersion150), blockNumber+1, blockHash); err != nil {
return err
}
Expand Down

0 comments on commit b239eac

Please sign in to comment.