From 708c5e70e9f30af600d7dee15da3143af8e9c213 Mon Sep 17 00:00:00 2001 From: forcodedancing Date: Wed, 6 Nov 2024 19:43:30 +0800 Subject: [PATCH] feat: introduce the Savanna upgrade --- types/upgrade.go | 3 +++ x/upgrade/types/upgrade_config.go | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/types/upgrade.go b/types/upgrade.go index 5119b5c64..dd6d9bcdb 100644 --- a/types/upgrade.go +++ b/types/upgrade.go @@ -38,4 +38,7 @@ const ( // Altai is the upgrade name for Altai upgrade Altai = "Altai" + + // Savanna is the upgrade name for Savanna upgrade + Savanna = "Savanna" ) diff --git a/x/upgrade/types/upgrade_config.go b/x/upgrade/types/upgrade_config.go index 136aaae87..69cdf62a2 100644 --- a/x/upgrade/types/upgrade_config.go +++ b/x/upgrade/types/upgrade_config.go @@ -44,6 +44,9 @@ const ( // Altai is the upgrade name for Altai upgrade Altai = types.Altai + + // Savanna is the upgrade name for Savanna upgrade + Savanna = types.Savanna ) // The default upgrade config for networks @@ -97,6 +100,10 @@ var ( Name: Altai, Height: 11917971, Info: "Altai hardfork", + }).SetPlan(&Plan{ + Name: Savanna, + // todo: height + Info: "Savanna hardfork", }) TestnetChainID = "greenfield_5600-1" @@ -148,6 +155,10 @@ var ( Name: Altai, Height: 12513708, Info: "Altai hardfork", + }).SetPlan(&Plan{ + Name: Savanna, + // todo: height + Info: "Savanna hardfork", }) )