Skip to content

Commit

Permalink
upgrade: avoid to modify RialtoGenesisHash when testing in rialtoNet (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBSC authored May 19, 2023
1 parent 060aba5 commit bac626c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/systemcontracts/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ var (
lubanUpgrade = make(map[string]*Upgrade)

platoUpgrade = make(map[string]*Upgrade)

latestUpgrade = platoUpgrade
)

func init() {
Expand Down Expand Up @@ -695,6 +697,8 @@ func init() {
},
},
}

latestUpgrade[defaultNet] = latestUpgrade[rialtoNet]
}

func UpgradeBuildInSystemContract(config *params.ChainConfig, blockNumber *big.Int, statedb *state.StateDB) {
Expand Down

0 comments on commit bac626c

Please sign in to comment.