Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider including v2 upgrade heights in binary for common networks #3995

Closed
rootulp opened this issue Oct 21, 2024 · 2 comments · Fixed by #4091
Closed

Consider including v2 upgrade heights in binary for common networks #3995

rootulp opened this issue Oct 21, 2024 · 2 comments · Fixed by #4091
Assignees
Labels
enhancement New feature or request WS: Maintenance 🔧 includes bugs, refactors, flakes, and tech debt etc

Comments

@rootulp
Copy link
Collaborator

rootulp commented Oct 21, 2024

Context

We used a --v2-upgrade-height flag on networks

Problem

If a consensus node is block syncing from genesis, it needs to provide the --v2-upgrade-height

Proposal

Consider hard-coding the --v2-upgrade-heights for arabica, mocha, mainnet beta so that node operators don't have to specify it.

@rootulp rootulp added the enhancement New feature or request label Oct 21, 2024
@cmwaters
Copy link
Contributor

I am for this

@evan-forbes evan-forbes added the WS: Maintenance 🔧 includes bugs, refactors, flakes, and tech debt etc label Nov 8, 2024
@rootulp
Copy link
Collaborator Author

rootulp commented Nov 27, 2024

Note: this will be cumbersome to test b/c we'll need to block sync on Arabica, Mocha, or Mainnet through the v2 upgrade height.

To make this issue easier, we should build a utility that makes it easier + faster to block sync.

@rootulp rootulp self-assigned this Dec 2, 2024
@rootulp rootulp changed the title Consider hard-coding v2 upgrade heights Consider including v2 upgrade heights in binary for common networks Dec 6, 2024
rootulp added a commit that referenced this issue Dec 9, 2024
Closes #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
rootulp added a commit to rootulp/celestia-app that referenced this issue Dec 9, 2024
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
rootulp added a commit to rootulp/celestia-app that referenced this issue Dec 9, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request WS: Maintenance 🔧 includes bugs, refactors, flakes, and tech debt etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants