Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/cli/src/options/beaconNodeOptions/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ export const options: CliCommandOptions<ChainArgs> = {

serveHistoricalState: {
description:
"Enable regenerating finalized state to serve historical data. Fetching this data is expensive and may affect validator performance.",
"Spawn a worker thread to regenerate finalized beacon states on demand and serve them via the debug REST API (e.g. `/eth/v2/debug/beacon/states/{state_id}`). \
Comment thread
nflaig marked this conversation as resolved.
Resolved
Does not backfill historical data — only states the node already has (since genesis sync or `--checkpointState`) can be regenerated. \
Comment thread
nflaig marked this conversation as resolved.
Resolved
Regeneration cost depends on `--chain.archiveStateEpochFrequency` and may affect validator performance.",
type: "boolean",
default: defaultOptions.chain.serveHistoricalState,
group: "chain",
Expand Down Expand Up @@ -315,7 +317,10 @@ Will double processing times. Use only for debugging purposes.",
},

"chain.pruneHistory": {
description: "Prune historical blocks and state",
description:
"Continually prune finalized blocks older than `MIN_EPOCHS_FOR_BLOCK_REQUESTS` (e.g., 33024 epochs / ~5 months on mainnet) and all archived states before the finalized epoch. \
Comment thread
nflaig marked this conversation as resolved.
Resolved
Use this to minimize disk usage when the node does not need to serve historical data. \
Comment thread
nflaig marked this conversation as resolved.
Resolved
Initial pruning may be slow on first startup with an existing large database.",
type: "boolean",
default: defaultOptions.chain.pruneHistory,
group: "chain",
Expand Down
Loading