forked from celestiaorg/celestia-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: set defaults for
--v2-upgrade-height
(celestiaorg#4091)
Closes celestiaorg#3995 If a user specifies the `--v2-upgrade-height` flag then it takes precedence over any defaults. If the user doesn't specify a `--v2-upgrade-height` flag and the chainID is `arabica-11`, `mocha-4`, or `celestia` then the v2 upgrade height is set to the block height that was coordinated on those chains. See: https://docs.celestia.org/how-to-guides/network-upgrade-process#lemongrass-network-upgrade ## Testing 1. `./scripts/single-node.sh` doesn't set a v2 upgrade height 2. `./arabica.sh` if we remove the `--v2-upgrade-height` flag in the script, gets defaulted correctly 3. `./arabica.sh` if we override the `--v2-upgrade-height` flag in the script, that gets used
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ package appconsts | |
|
||
const ( | ||
ArabicaChainID = "arabica-11" | ||
MochaChainID = "mocha-4" | ||
MainnetChainID = "celestia" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package appconsts | ||
|
||
const ( | ||
// ArabicaUpgradeHeightV2 is the block height at which the arabica-11 | ||
// upgraded from app version 1 to 2. | ||
ArabicaUpgradeHeightV2 = 1751707 | ||
// MochaUpgradeHeightV2 is the block height at which the mocha-4 upgraded | ||
// from app version 1 to 2. | ||
MochaUpgradeHeightV2 = 2585031 | ||
// MainnetUpgradeHeightV2 is the block height at which the celestia upgraded | ||
// from app version 1 to 2. | ||
MainnetUpgradeHeightV2 = 2371495 | ||
) |