From 68f80cc862d5fc0546cdaeff32eb6c4e6319067c Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Wed, 13 Sep 2023 13:56:53 +1000 Subject: [PATCH] Change default epochs-per-state-diff to 16 This should make replaying diffs during non-finality a bit quicker. --- beacon_node/src/cli.rs | 2 +- beacon_node/store/src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_node/src/cli.rs b/beacon_node/src/cli.rs index 0870b8c7065..e059e6fa0e9 100644 --- a/beacon_node/src/cli.rs +++ b/beacon_node/src/cli.rs @@ -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) ) /* diff --git a/beacon_node/store/src/config.rs b/beacon_node/store/src/config.rs index 18878e95e6c..26b1d07a655 100644 --- a/beacon_node/store/src/config.rs +++ b/beacon_node/store/src/config.rs @@ -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;