Skip to content

Write pruning config to reth.toml when --full is specified #7923

@Rjected

Description

@Rjected

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

Metadata

Metadata

Assignees

Labels

A-cliRelated to the reth CLIA-pruningRelated to pruning or full nodeC-enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions