mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-09 15:48:08 -05:00
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:
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user