Skip to content

Commit

Permalink
Change default epochs-per-state-diff to 16
Browse files Browse the repository at this point in the history
This should make replaying diffs during non-finality a bit quicker.
  • Loading branch information
michaelsproul committed Sep 13, 2023
1 parent 838e104 commit 68f80cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon_node/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
/*
Expand Down
2 changes: 1 addition & 1 deletion beacon_node/store/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 68f80cc

Please sign in to comment.