Skip to content

Commit

Permalink
revert: remove the hardfork height of BEP159Height on mainnet (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro authored Feb 10, 2023
1 parent f6ce0f0 commit 291c077
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ func defaultUpgradeConfig() *UpgradeConfig {
BEP67Height: 1,
BEP70Height: 1,
LaunchBscUpgradeHeight: 1,
LimitConsAddrUpdateIntervalHeight: 1,
LimitConsAddrUpdateIntervalHeight: math.MaxInt64,
BEP128Height: math.MaxInt64,
BEP151Height: math.MaxInt64,
BEP153Height: math.MaxInt64,
Expand Down
4 changes: 0 additions & 4 deletions asset/mainnet/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ BEP153Height = 284376000
#Block height of BEP173 upgrade
BEP173Height = 284376000
FixDoubleSignChainIdHeight = 9223372036854775807
# Block height of BEP159Height upgrade
BEP159Height = 298721375
# Block height of LimitConsAddrUpdateInterval upgrade
LimitConsAddrUpdateIntervalHeight = 298721375

[addr]
# Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
Expand Down
2 changes: 0 additions & 2 deletions asset/testnet/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ FixDoubleSignChainIdHeight = 34587202
BEP159Height = 34587202
#Block height of BEP159Phase2Height upgrade
BEP159Phase2Height = 34963303
# Block height of LimitConsAddrUpdateInterval upgrade
LimitConsAddrUpdateIntervalHeight = 36174050

[query]
# ABCI query interface black list, suggested value: ["custom/gov/proposals", "custom/timelock/timelocks", "custom/atomicSwap/swapcreator", "custom/atomicSwap/swaprecipient"]
Expand Down
1 change: 1 addition & 0 deletions cmd/gen_devnet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func main() {
binanceChainConfig.UpgradeConfig.BEP153Height = 2
binanceChainConfig.UpgradeConfig.BEP159Height = 3
binanceChainConfig.UpgradeConfig.BEP159Phase2Height = 6
binanceChainConfig.UpgradeConfig.LimitConsAddrUpdateIntervalHeight = 6
binanceChainConfig.BreatheBlockInterval = 5
appConfigFilePath := filepath.Join(ctxConfig.RootDir, "config", "app.toml")
config.WriteConfigFile(appConfigFilePath, binanceChainConfig)
Expand Down
1 change: 1 addition & 0 deletions scripts/bep159_integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function prepare_node() {
$(cd "./${home}/config" && sed -i -e "s/BEP153Height = 9223372036854775807/BEP153Height = 2/g" app.toml)
$(cd "./${home}/config" && sed -i -e "s/BEP159Height = 9223372036854775807/BEP159Height = 3/g" app.toml)
$(cd "./${home}/config" && sed -i -e "s/BEP159Phase2Height = 9223372036854775807/BEP159Phase2Height = 11/g" app.toml)
$(cd "./${home}/config" && sed -i -e "s/LimitConsAddrUpdateIntervalHeight = 9223372036854775807/LimitConsAddrUpdateIntervalHeight = 11/g" app.toml)
$(cd "./${home}/config" && sed -i -e "s/breatheBlockInterval = 0/breatheBlockInterval = 5/g" app.toml)
# $(cd "./${home}/config" && sed -i -e "s/publishStaking = false/publishStaking = true/g" app.toml)
# $(cd "./${home}/config" && sed -i -e "s/publishKafka = false/publishKafka = true/g" app.toml)
Expand Down

0 comments on commit 291c077

Please sign in to comment.