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

Delete bad blocks during migration #267

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

piersy
Copy link

@piersy piersy commented Oct 28, 2024

This change deletes bad blocks at migration time, since we don't need
to keep historical bad blocks and if not transformed like the other migrated
blocks can lead to panics when trying to load them (which happens when
a new bad block is discovered).

I've tested this locally, by taking a datdir where bad blocks could be
retrieved via geth db get 0x496e76616c6964426c6f636b and migrated
it and verified that then the bad blocks cannot be retrieved which looks like this.

INFO [10-28|13:00:32.736] Get operation failed                     error="leveldb: not found"

Since the key is not present.

@piersy piersy requested review from karlb and alecps October 28, 2024 13:19
@piersy piersy merged commit b9db909 into celo10 Oct 28, 2024
53 of 56 checks passed
@piersy piersy deleted the piersy/migration-delete-bad-blocks branch October 28, 2024 21:31
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