fix(prune): migrate invalid receipts prune config to Distance(64)#21677
Merged
fix(prune): migrate invalid receipts prune config to Distance(64)#21677
Conversation
f97f5f7 to
27e110a
Compare
27e110a to
545c4bd
Compare
545c4bd to
63e6af5
Compare
joshieDo
reviewed
Feb 1, 2026
ee2ed5b to
1a764c8
Compare
joshieDo
reviewed
Feb 1, 2026
| sender_recovery: Some(PruneMode::Full), | ||
| transaction_lookup: Some(PruneMode::Full), | ||
| receipts: Some(PruneMode::Full), | ||
| receipts: Some(PruneMode::Distance(MINIMUM_DISTANCE)), |
- Update minimal_prune_modes to use Distance(MINIMUM_DISTANCE) instead of Full for receipts - Extend migrate() to fix existing invalid configs at startup Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-019c1a83-84fa-76ef-b4b6-f6e22a40b1ce
1a764c8 to
25a26fd
Compare
shekhirin
approved these changes
Feb 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
minimal_prune_modes.receiptsfromFulltoDistance(MINIMUM_DISTANCE).Extends
migrate()to convert invalid receipts configs (FullorDistance < 64) toDistance(64)at startup. Migrated config is persisted toreth.toml.