We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bb630b commit 54809f7Copy full SHA for 54809f7
app/forks.go
@@ -14,6 +14,8 @@ type Fork struct {
14
UpgradeName string
15
// height the upgrade occurs at
16
UpgradeHeight int64
17
+ // chain-id the upgrade occurs at
18
+ UpgradeChainId string
19
20
// Function that runs some custom state transition code at the beginning of a fork.
21
BeginForkLogic func(ctx sdk.Context, app *App)
@@ -22,7 +24,7 @@ type Fork struct {
22
24
// BeginBlockForks is intended to be ran in a chain upgrade.
23
25
func BeginBlockForks(ctx sdk.Context, app *App) {
26
for _, fork := range Forks {
- if ctx.BlockHeight() == fork.UpgradeHeight {
27
+ if ctx.BlockHeight() == fork.UpgradeHeight && ctx.ChainID() == fork.UpgradeChainId {
28
fork.BeginForkLogic(ctx, app)
29
return
30
}
0 commit comments