Skip to content

Commit

Permalink
fix(pruner): prune history segments first
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Jun 20, 2024
1 parent 5583150 commit dfb93be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/prune/prune/src/segments/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ impl<DB: Database> SegmentSet<DB> {
} = prune_modes;

Self::default()
// Account history
.segment_opt(account_history.map(AccountHistory::new))
// Storage history
.segment_opt(storage_history.map(StorageHistory::new))
// Receipts
.segment_opt(receipts.map(Receipts::new))
// Receipts by logs
Expand All @@ -59,10 +63,6 @@ impl<DB: Database> SegmentSet<DB> {
.segment_opt(transaction_lookup.map(TransactionLookup::new))
// Sender recovery
.segment_opt(sender_recovery.map(SenderRecovery::new))
// Account history
.segment_opt(account_history.map(AccountHistory::new))
// Storage history
.segment_opt(storage_history.map(StorageHistory::new))
}
}

Expand Down

0 comments on commit dfb93be

Please sign in to comment.