mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-30 01:28:21 -05:00
feat: use DepositContract on ChainSpec (#4041)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -25,7 +25,10 @@ impl PruningArgs {
|
||||
parts: PruneModes {
|
||||
sender_recovery: Some(PruneMode::Distance(128)),
|
||||
transaction_lookup: None,
|
||||
receipts: chain_spec.deposit_contract_deployment_block.map(PruneMode::Before),
|
||||
receipts: chain_spec
|
||||
.deposit_contract
|
||||
.as_ref()
|
||||
.map(|contract| PruneMode::Before(contract.block)),
|
||||
account_history: Some(PruneMode::Distance(128)),
|
||||
storage_history: Some(PruneMode::Distance(128)),
|
||||
},
|
||||
|
||||
@@ -272,7 +272,7 @@ mod tests {
|
||||
fork_timestamps: ForkTimestamps::default(),
|
||||
genesis_hash: None,
|
||||
paris_block_and_final_difficulty: None,
|
||||
deposit_contract_deployment_block: None,
|
||||
deposit_contract: None,
|
||||
});
|
||||
|
||||
let db = create_test_rw_db();
|
||||
|
||||
Reference in New Issue
Block a user