-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathinclude_upgrade_mainnet.go
More file actions
35 lines (31 loc) · 948 Bytes
/
include_upgrade_mainnet.go
File metadata and controls
35 lines (31 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//go:build mainnet
package app
import (
"github.com/babylonlabs-io/babylon/v4/app/upgrades"
"github.com/babylonlabs-io/babylon/v4/app/upgrades/v1_1"
v2 "github.com/babylonlabs-io/babylon/v4/app/upgrades/v2"
v22 "github.com/babylonlabs-io/babylon/v4/app/upgrades/v2_2"
v23 "github.com/babylonlabs-io/babylon/v4/app/upgrades/v2_3"
v4 "github.com/babylonlabs-io/babylon/v4/app/upgrades/v4"
v5 "github.com/babylonlabs-io/babylon/v4/app/upgrades/v5"
)
var WhitelistedChannelsID = map[string]struct{}{
"channel-0": struct{}{},
"channel-1": struct{}{},
"channel-2": struct{}{},
"channel-3": struct{}{},
"channel-4": struct{}{},
"channel-5": struct{}{},
"channel-6": struct{}{},
}
// init is used to include v2.2 upgrade for mainnet data
func init() {
Upgrades = []upgrades.Upgrade{
v5.Upgrade,
v4.Upgrade,
v23.Upgrade, // same as v3rc3 testnet
v22.Upgrade,
v2.CreateUpgrade(false, WhitelistedChannelsID),
v1_1.Upgrade,
}
}