Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: lower persistence threshold #10156

Merged
merged 1 commit into from
Aug 7, 2024
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
2 changes: 1 addition & 1 deletion crates/engine/tree/src/tree/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Engine tree configuration.

const DEFAULT_PERSISTENCE_THRESHOLD: u64 = 256;
const DEFAULT_PERSISTENCE_THRESHOLD: u64 = 3;
const DEFAULT_BLOCK_BUFFER_LIMIT: u32 = 256;
const DEFAULT_MAX_INVALID_HEADER_CACHE_LENGTH: u32 = 256;

Expand Down
4 changes: 1 addition & 3 deletions crates/ethereum/node/src/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ where
let pruner_events = pruner.events();
info!(target: "reth::cli", prune_config=?ctx.prune_config().unwrap_or_default(), "Pruner initialized");

let tree_config = TreeConfig::default().with_persistence_threshold(120);

// Configure the consensus engine
let mut eth_service = EthService::new(
ctx.chain_spec(),
Expand All @@ -185,7 +183,7 @@ where
ctx.blockchain_db().clone(),
pruner,
ctx.components().payload_builder().clone(),
tree_config,
TreeConfig::default(),
);

let event_sender = EventSender::default();
Expand Down
Loading