mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(cli): set receipts pruning for chain without deposit contract (#9782)
This commit is contained in:
@ -21,15 +21,18 @@ impl PruningArgs {
|
||||
if !self.full {
|
||||
return None
|
||||
}
|
||||
|
||||
Some(PruneConfig {
|
||||
block_interval: 5,
|
||||
segments: PruneModes {
|
||||
sender_recovery: Some(PruneMode::Full),
|
||||
transaction_lookup: None,
|
||||
// prune all receipts if chain doesn't have deposit contract specified in chain spec
|
||||
receipts: chain_spec
|
||||
.deposit_contract
|
||||
.as_ref()
|
||||
.map(|contract| PruneMode::Before(contract.block)),
|
||||
.map(|contract| PruneMode::Before(contract.block))
|
||||
.or(Some(PruneMode::Full)),
|
||||
account_history: Some(PruneMode::Distance(MINIMUM_PRUNING_DISTANCE)),
|
||||
storage_history: Some(PruneMode::Distance(MINIMUM_PRUNING_DISTANCE)),
|
||||
receipts_log_filter: ReceiptsLogPruneConfig(
|
||||
|
||||
Reference in New Issue
Block a user