Skip to content

Commit 9c4fc6e

Browse files
authored
Change state cache size default to 32 (#7101)
Cherry-picking #7055 from `holesky-rescue` branch to the clean `release-v7.0.0` branch.
1 parent 0f5e680 commit 9c4fc6e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

beacon_node/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ pub fn cli_app() -> Command {
812812
.long("state-cache-size")
813813
.value_name("STATE_CACHE_SIZE")
814814
.help("Specifies the size of the state cache")
815-
.default_value("128")
815+
.default_value("32")
816816
.action(ArgAction::Set)
817817
.display_order(0)
818818
)

book/src/help_bn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ Options:
386386
--slots-per-restore-point <SLOT_COUNT>
387387
DEPRECATED. This flag has no effect.
388388
--state-cache-size <STATE_CACHE_SIZE>
389-
Specifies the size of the state cache [default: 128]
389+
Specifies the size of the state cache [default: 32]
390390
--suggested-fee-recipient <SUGGESTED-FEE-RECIPIENT>
391391
Emergency fallback fee recipient for use in case the validator client
392392
does not have one configured. You should set this flag on the

lighthouse/tests/beacon_node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ fn block_cache_size_flag() {
18731873
fn state_cache_size_default() {
18741874
CommandLineTest::new()
18751875
.run_with_zero_port()
1876-
.with_config(|config| assert_eq!(config.store.state_cache_size, new_non_zero_usize(128)));
1876+
.with_config(|config| assert_eq!(config.store.state_cache_size, new_non_zero_usize(32)));
18771877
}
18781878
#[test]
18791879
fn state_cache_size_flag() {

0 commit comments

Comments
 (0)