chore(chainspec): remove MAINNET usage from ChainSpec::default (#14565)

This commit is contained in:
DaniPopes
2025-02-18 16:36:57 +01:00
committed by GitHub
parent c0a30f051e
commit 3485ce45be
5 changed files with 15 additions and 7 deletions

View File

@ -1,6 +1,6 @@
use crate::{segments::SegmentSet, Pruner};
use alloy_eips::eip2718::Encodable2718;
use reth_chainspec::MAINNET;
use reth_chainspec::MAINNET_PRUNE_DELETE_LIMIT;
use reth_config::PruneConfig;
use reth_db_api::{table::Value, transaction::DbTxMut};
use reth_exex_types::FinishedExExHeight;
@ -129,7 +129,7 @@ impl Default for PrunerBuilder {
Self {
block_interval: 5,
segments: PruneModes::none(),
delete_limit: MAINNET.prune_delete_limit,
delete_limit: MAINNET_PRUNE_DELETE_LIMIT,
timeout: None,
finished_exex_height: watch::channel(FinishedExExHeight::NoExExs).1,
}

View File

@ -20,8 +20,9 @@ mod target;
use alloc::{collections::BTreeMap, vec::Vec};
use alloy_primitives::{Address, BlockNumber};
pub use checkpoint::PruneCheckpoint;
use core::ops::Deref;
pub use checkpoint::PruneCheckpoint;
pub use event::PrunerEvent;
pub use mode::PruneMode;
pub use pruner::{