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

chain: support checkpoints in the genesis state #3034

Merged
merged 13 commits into from
Sep 15, 2023
Merged

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Sep 15, 2023

Closes #1809, and prepares #3004 since we will be able to match the supplied genesis state to decide whether we want to run chain initialization logic e.g. setting the genesis base rate, or fast-forward to committing the initial height block.

This PR turns genesis::AppState into an enum:

pub enum AppState {
    Content(/* a full genesis configuration */),
    Checkpoint(/* a free-form byte string e.g. an apphash, a commit hash */)
}

and percolate those changes across the codebase.

@erwanor erwanor force-pushed the 1809_checkpoint_genesis branch from 9838116 to 129b89b Compare September 15, 2023 18:53
@erwanor erwanor temporarily deployed to smoke-test September 15, 2023 18:53 — with GitHub Actions Inactive
@erwanor erwanor temporarily deployed to smoke-test September 15, 2023 22:14 — with GitHub Actions Inactive
@erwanor erwanor temporarily deployed to smoke-test September 15, 2023 22:45 — with GitHub Actions Inactive
@erwanor erwanor merged commit dfb721c into main Sep 15, 2023
7 of 8 checks passed
@erwanor erwanor deleted the 1809_checkpoint_genesis branch September 15, 2023 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upgrades: add support for checkpointing in AppState
1 participant