diff --git a/beacon_node/src/cli.rs b/beacon_node/src/cli.rs index a8f626f0647..a8349af86d6 100644 --- a/beacon_node/src/cli.rs +++ b/beacon_node/src/cli.rs @@ -812,7 +812,7 @@ pub fn cli_app() -> Command { .long("state-cache-size") .value_name("STATE_CACHE_SIZE") .help("Specifies the size of the state cache") - .default_value("128") + .default_value("32") .action(ArgAction::Set) .display_order(0) ) diff --git a/book/src/help_bn.md b/book/src/help_bn.md index 79c8d8ead85..f7abc2ad79e 100644 --- a/book/src/help_bn.md +++ b/book/src/help_bn.md @@ -386,7 +386,7 @@ Options: --slots-per-restore-point DEPRECATED. This flag has no effect. --state-cache-size - Specifies the size of the state cache [default: 128] + Specifies the size of the state cache [default: 32] --suggested-fee-recipient Emergency fallback fee recipient for use in case the validator client does not have one configured. You should set this flag on the diff --git a/lighthouse/tests/beacon_node.rs b/lighthouse/tests/beacon_node.rs index 3cbb7d4e15c..41ff24f27dc 100644 --- a/lighthouse/tests/beacon_node.rs +++ b/lighthouse/tests/beacon_node.rs @@ -1873,7 +1873,7 @@ fn block_cache_size_flag() { fn state_cache_size_default() { CommandLineTest::new() .run_with_zero_port() - .with_config(|config| assert_eq!(config.store.state_cache_size, new_non_zero_usize(128))); + .with_config(|config| assert_eq!(config.store.state_cache_size, new_non_zero_usize(32))); } #[test] fn state_cache_size_flag() {