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

Migrate hot blocks if using blinded storage #5940

Merged
merged 9 commits into from
Jul 18, 2022
Merged

Conversation

rolfyone
Copy link
Contributor

As a starting point for blinded storage migration

  • migrate blinded blocks so that we can start up if we were previously using full hot block storage

  • migrate the first block (lowest slot) from finalized storage - this will ensure back filling happens from the right spot.

A future PR will cater for migrating finalized storage and non canonical block storage.

Blinded block storage is still off by default, so this migration is only performed if the feature toggle is on. It's worth noting that once you've enabled that toggle, you won't be able to go back to using the old storage, as your hotblock storage will have moved and teku won't start without hotblocks to build the protoarray.

Partially addresses #5312

Signed-off-by: Paul Harris [email protected]

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

rolfyone added 3 commits July 15, 2022 20:13
As a starting point for blinded storage migration

 - migrate blinded blocks so that we can start up if we were previously using full hot block storage

 - migrate the first block (lowest slot) from finalized storage - this will ensure back filling happens from the right spot.

A future PR will cater for migrating finalized storage and non canonical block storage.

Partially addresses Consensys#5312

Signed-off-by: Paul Harris <[email protected]>
rolfyone added 2 commits July 18, 2022 09:31
…gration to guard it against multiple execution

 - renamed several new functions to try to make them more consistent.

Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
@rolfyone rolfyone marked this pull request as ready for review July 18, 2022 00:22
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM.

@rolfyone rolfyone enabled auto-merge (squash) July 18, 2022 02:08
@rolfyone rolfyone merged commit 300877b into Consensys:master Jul 18, 2022
@rolfyone rolfyone deleted the 5312-4 branch July 18, 2022 02:23
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.

2 participants