diff --git a/bin/reth/src/args/pruning_args.rs b/bin/reth/src/args/pruning_args.rs index cb71dce15..1c33ce644 100644 --- a/bin/reth/src/args/pruning_args.rs +++ b/bin/reth/src/args/pruning_args.rs @@ -18,14 +18,16 @@ pub struct PruningArgs { impl PruningArgs { /// Returns pruning configuration. - pub fn prune_config(&self, chain_spec: Arc) -> Option { - if self.full { + pub fn prune_config(&self, _chain_spec: Arc) -> eyre::Result> { + Ok(if self.full { + eyre::bail!("full node is not supported yet, keep an eye on next releases"); + #[allow(unreachable_code)] Some(PruneConfig { block_interval: 5, parts: PruneModes { sender_recovery: Some(PruneMode::Distance(128)), transaction_lookup: None, - receipts: chain_spec + receipts: _chain_spec .deposit_contract .as_ref() .map(|contract| PruneMode::Before(contract.block)), @@ -35,6 +37,6 @@ impl PruningArgs { }) } else { None - } + }) } } diff --git a/bin/reth/src/node/mod.rs b/bin/reth/src/node/mod.rs index 65657b71f..83e6cd1c8 100644 --- a/bin/reth/src/node/mod.rs +++ b/bin/reth/src/node/mod.rs @@ -337,7 +337,7 @@ impl NodeCommand { None }; - let prune_config = self.pruning.prune_config(Arc::clone(&self.chain)).or(config.prune); + let prune_config = self.pruning.prune_config(Arc::clone(&self.chain))?.or(config.prune); // Configure the pipeline let (mut pipeline, client) = if self.dev.dev {