mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: reduce merkle clean_threshold to 5000 (#7364)
This commit is contained in:
@ -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`
|
||||
|
||||
@ -222,7 +222,7 @@ pub struct MerkleConfig {
|
||||
|
||||
impl Default for MerkleConfig {
|
||||
fn default() -> Self {
|
||||
Self { clean_threshold: 50_000 }
|
||||
Self { clean_threshold: 5_000 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user