Skip to content

Commit 174b001

Browse files
authored
feat: add prairie upgrade (#524)
* feat(upgrade): add Prairie upgrade constant * set hardfork config
1 parent fc57458 commit 174b001

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

types/upgrade.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@ const (
4444

4545
// Tundra is the upgrade name for Tundra upgrade
4646
Tundra = "Tundra"
47+
48+
// Prairie is the upgrade name for Prairie upgrade
49+
Prairie = "Prairie"
4750
)

x/upgrade/types/upgrade_config.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ const (
5050

5151
// Tundra is the upgrade name for Tundra upgrade
5252
Tundra = types.Tundra
53+
54+
// Prairie is the upgrade name for Prairie upgrade
55+
Prairie = types.Prairie
5356
)
5457

5558
// The default upgrade config for networks
@@ -111,6 +114,10 @@ var (
111114
Name: Tundra,
112115
Height: 25213033,
113116
Info: "Tundra hardfork",
117+
}).SetPlan(&Plan{
118+
Name: Prairie,
119+
Height: 31432100,
120+
Info: "Prairie hardfork",
114121
})
115122

116123
TestnetChainID = "greenfield_5600-1"
@@ -170,6 +177,10 @@ var (
170177
Name: Tundra,
171178
Height: 24007800,
172179
Info: "Tundra hardfork",
180+
}).SetPlan(&Plan{
181+
Name: Prairie,
182+
Height: 29798400,
183+
Info: "Prairie hardfork",
173184
})
174185
)
175186

0 commit comments

Comments
 (0)