Skip to content

Commit 68f80cc

Browse files
committed
Change default epochs-per-state-diff to 16
This should make replaying diffs during non-finality a bit quicker.
1 parent 838e104 commit 68f80cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

beacon_node/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
752752
.help("Number of epochs between state diffs stored in the database. Lower values \
753753
result in more writes and more data stored, while higher values result in \
754754
more block replaying and longer load times in case of cache miss.")
755-
.default_value("4")
755+
.default_value("16")
756756
.takes_value(true)
757757
)
758758
/*

beacon_node/store/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use ssz_derive::{Decode, Encode};
66
use std::io::Write;
77
use zstd::Encoder;
88

9-
pub const DEFAULT_EPOCHS_PER_STATE_DIFF: u64 = 4;
9+
pub const DEFAULT_EPOCHS_PER_STATE_DIFF: u64 = 16;
1010
pub const DEFAULT_BLOCK_CACHE_SIZE: usize = 64;
1111
pub const DEFAULT_STATE_CACHE_SIZE: usize = 128;
1212
pub const DEFAULT_COMPRESSION_LEVEL: i32 = 1;

0 commit comments

Comments
 (0)