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

pd: add migration for testnet77 #4503

Merged
merged 1 commit into from
May 30, 2024
Merged

pd: add migration for testnet77 #4503

merged 1 commit into from
May 30, 2024

Conversation

conorsch
Copy link
Contributor

Describe your changes

Adds a new migration, which resets the halt bit. No other migration logic is required, as no state-breaking changes are slated for testnet 77. This way, we preserve pd migrate as the default invocation for node operators. Also changed here are the APP_VERSION and corresponding docs entries.

Issue ticket number and link

Refs #4497.

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    Updates migrations, in order to ensure previously merged consensus-breaking changes are handled correctly.

@conorsch conorsch requested a review from erwanor May 30, 2024 16:04
@@ -22,7 +22,7 @@ use once_cell::sync::Lazy;

/// Representation of the Penumbra application version. Notably, this is distinct
/// from the crate version(s). This number should only ever be incremented.
pub const APP_VERSION: u64 = 5;
pub const APP_VERSION: u64 = 6;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

.get_block_height()
.await
.expect("chain state has a block height");
let post_upgrade_height = pre_upgrade_height.wrapping_add(1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're missing creating the StateDelta and calling delta.ready_to_start() + commit in place, unless my eyes betray me

Adds a new migration, which resets the halt bit. No other migration
logic is required, as no state-breaking changes are slated for testnet
77. This way, we preserve `pd migrate` as the default invocation for
node operators. Also changed here are the APP_VERSION and corresponding
docs entries.

Refs #4497.
@conorsch conorsch force-pushed the migration-for-77 branch from a8c8f21 to 9cdbb99 Compare May 30, 2024 18:32
@conorsch conorsch merged commit 4f40710 into main May 30, 2024
16 checks passed
@conorsch conorsch deleted the migration-for-77 branch May 30, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants