mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(chainspec): remove MAINNET usage from ChainSpec::default (#14565)
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
||||
@ -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::{
|
||||
|
||||
Reference in New Issue
Block a user