Skip to content

Commit

Permalink
Data column cache pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
povi committed May 16, 2024
1 parent 05b0215 commit e3c84a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fork_choice_store/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2589,6 +2589,14 @@ impl<P: Preset> Store<P> {

self.accepted_blob_sidecars
.retain(|(slot, _, _), _| finalized_slot <= *slot);
self.accepted_data_column_sidecars
.retain(|(slot, _, _), _| finalized_slot <= *slot);
// TODO(feature/eip-7594):
//
// Data columns must be stored for much longer period than finalization.
// However, that should be done in persistence layer.
self.data_column_cache
.retain(|_, (_, slot)| finalized_slot <= *slot);
self.prune_checkpoint_states();
self.preprocessed_states.prune(finalized_slot);
self.aggregate_and_proof_supersets
Expand Down

0 comments on commit e3c84a9

Please sign in to comment.