feat: prune expired data column sidecars (#7717)

**Motivation**

implement the same pruning logic used for blob sidecars for data column
sidecars

**Description**

update archiveBlocks to delete data column sidecar data the the node has
stored longer than the minimum required epochs

add config field MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS
This commit is contained in:
Hugh Cunningham
2025-04-22 03:19:50 -07:00
committed by GitHub
parent 27365a35fd
commit 008adb8ef0
15 changed files with 126 additions and 19 deletions

View File

@@ -138,4 +138,5 @@ export const mainnetPreset: BeaconPreset = {
FIELD_ELEMENTS_PER_CELL: 64,
FIELD_ELEMENTS_PER_EXT_BLOB: 8192,
KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH: 4,
MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS: 4096,
};

View File

@@ -140,4 +140,5 @@ export const minimalPreset: BeaconPreset = {
FIELD_ELEMENTS_PER_CELL: 64,
FIELD_ELEMENTS_PER_EXT_BLOB: 8192,
KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH: 4,
MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS: 4096,
};

View File

@@ -100,6 +100,7 @@ export type BeaconPreset = {
FIELD_ELEMENTS_PER_CELL: number;
FIELD_ELEMENTS_PER_EXT_BLOB: number;
KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH: number;
MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS: number;
};
/**
@@ -205,6 +206,7 @@ export const beaconPresetTypes: BeaconPresetTypes = {
FIELD_ELEMENTS_PER_CELL: "number",
FIELD_ELEMENTS_PER_EXT_BLOB: "number",
KZG_COMMITMENTS_INCLUSION_PROOF_DEPTH: "number",
MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS: "number",
};
type BeaconPresetTypes = {