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

Add a block version field to the block header #3457

Open
jvff opened this issue Mar 3, 2025 · 0 comments
Open

Add a block version field to the block header #3457

jvff opened this issue Mar 3, 2025 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@jvff
Copy link
Contributor

jvff commented Mar 3, 2025

Motivation

The block format should be upgradable.

Proposal

Add a field to the start of the block header that indicates the block format version. That way, old clients can abort as soon as possible if they see an unsupported version, without the risk of reading in the wrong format.

Internally, implement the new format in memory and convert from the old formats in storage as they are loaded. When deemed safe, trigger an epoch change that allows the new block format to be created and persisted in storage.

@jvff jvff added the enhancement New feature or request label Mar 3, 2025
@jvff jvff added this to the Mainnet milestone Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant