Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
fix: reduce merkle clean_threshold to 5000 (paradigmxyz#7364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected authored Apr 2, 2024
1 parent b653b3d commit f63cebb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion book/run/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ The merkle stage uses the indexes built in the hashing stages (storage and accou
# The threshold in number of blocks before the stage starts from scratch
# and re-computes the state root, discarding the trie that has already been built,
# as opposed to incrementally updating the trie.
clean_threshold = 50000
clean_threshold = 5000
```

### `transaction_lookup`
Expand Down
2 changes: 1 addition & 1 deletion crates/config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ pub struct MerkleConfig {

impl Default for MerkleConfig {
fn default() -> Self {
Self { clean_threshold: 50_000 }
Self { clean_threshold: 5_000 }
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/stages/src/stages/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use tracing::*;

/// The default threshold (in number of blocks) for switching from incremental trie building
/// of changes to whole rebuild.
pub const MERKLE_STAGE_DEFAULT_CLEAN_THRESHOLD: u64 = 50_000;
pub const MERKLE_STAGE_DEFAULT_CLEAN_THRESHOLD: u64 = 5_000;

/// The merkle hashing stage uses input from
/// [`AccountHashingStage`][crate::stages::AccountHashingStage] and
Expand Down

0 comments on commit f63cebb

Please sign in to comment.