-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Write pruning config to reth.toml when --full is specified #7923
Copy link
Copy link
Closed
Labels
A-cliRelated to the reth CLIRelated to the reth CLIA-pruningRelated to pruning or full nodeRelated to pruning or full nodeC-enhancementNew feature or requestNew feature or request
Description
Describe the feature
Currently when you sync with --full, and then run reth node without --full (usually by mistake), everything will seem to run normally until the pipeline fails with stage is missing static file data during execution. Stage commands, lacking a --full option, often also fail.
We should instead use the pruning config, if it exists, in reth.toml. We should also write to this when the user specifies --full. This way, the stage commands do not need a --full argument, since they should also read from the reth config.
We could also warn the user if they attempt to run without --full, but have an existing pruning config, that this is a full node
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-cliRelated to the reth CLIRelated to the reth CLIA-pruningRelated to pruning or full nodeRelated to pruning or full nodeC-enhancementNew feature or requestNew feature or request
Type
Projects
Status
Done