Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions crates/node/builder/src/launch/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,6 @@ impl<R, ChainSpec: EthChainSpec> LaunchContextWith<Attached<WithConfigs<ChainSpe
ChainSpec: reth_chainspec::EthereumHardforks,
{
PrunerBuilder::new(self.prune_config().unwrap_or_default())
.delete_limit(self.chain_spec().prune_delete_limit())
.timeout(PrunerBuilder::DEFAULT_TIMEOUT)
}

/// Loads the JWT secret for the engine API
Expand Down
1 change: 0 additions & 1 deletion crates/prune/prune/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ workspace = true

[dependencies]
# reth
reth-chainspec.workspace = true
reth-exex-types.workspace = true
reth-db-api.workspace = true
reth-errors.workspace = true
Expand Down
6 changes: 1 addition & 5 deletions crates/prune/prune/src/builder.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::{segments::SegmentSet, Pruner};
use alloy_eips::eip2718::Encodable2718;
use reth_chainspec::MAINNET_PRUNE_DELETE_LIMIT;
use reth_config::PruneConfig;
use reth_db_api::{table::Value, transaction::DbTxMut};
use reth_exex_types::FinishedExExHeight;
Expand Down Expand Up @@ -30,9 +29,6 @@ pub struct PrunerBuilder {
}

impl PrunerBuilder {
/// Default timeout for a prune run.
pub const DEFAULT_TIMEOUT: Duration = Duration::from_millis(100);

/// Creates a new [`PrunerBuilder`] from the given [`PruneConfig`].
pub fn new(pruner_config: PruneConfig) -> Self {
Self::default()
Expand Down Expand Up @@ -135,7 +131,7 @@ impl Default for PrunerBuilder {
Self {
block_interval: 5,
segments: PruneModes::default(),
delete_limit: MAINNET_PRUNE_DELETE_LIMIT,
delete_limit: usize::MAX,
timeout: None,
finished_exex_height: watch::channel(FinishedExExHeight::NoExExs).1,
}
Expand Down
Loading