Change default epochs-per-state-diff to 16

This should make replaying diffs during non-finality a bit quicker.
This commit is contained in:
Michael Sproul
2023-09-13 13:56:53 +10:00
parent 838e104b25
commit 68f80cc862
2 changed files with 2 additions and 2 deletions

View File

@@ -752,7 +752,7 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
.help("Number of epochs between state diffs stored in the database. Lower values \
result in more writes and more data stored, while higher values result in \
more block replaying and longer load times in case of cache miss.")
.default_value("4")
.default_value("16")
.takes_value(true)
)
/*

View File

@@ -6,7 +6,7 @@ use ssz_derive::{Decode, Encode};
use std::io::Write;
use zstd::Encoder;
pub const DEFAULT_EPOCHS_PER_STATE_DIFF: u64 = 4;
pub const DEFAULT_EPOCHS_PER_STATE_DIFF: u64 = 16;
pub const DEFAULT_BLOCK_CACHE_SIZE: usize = 64;
pub const DEFAULT_STATE_CACHE_SIZE: usize = 128;
pub const DEFAULT_COMPRESSION_LEVEL: i32 = 1;