Change state cache size default to 32. (#7055)

This commit is contained in:
Jimmy Chen
2025-03-01 08:42:44 +11:00
committed by GitHub
parent 8706040094
commit 73b7cad202
2 changed files with 2 additions and 2 deletions

View File

@@ -828,7 +828,7 @@ pub fn cli_app() -> Command {
.long("state-cache-size") .long("state-cache-size")
.value_name("STATE_CACHE_SIZE") .value_name("STATE_CACHE_SIZE")
.help("Specifies the size of the state cache") .help("Specifies the size of the state cache")
.default_value("128") .default_value("32")
.action(ArgAction::Set) .action(ArgAction::Set)
.display_order(0) .display_order(0)
) )

View File

@@ -1873,7 +1873,7 @@ fn block_cache_size_flag() {
fn state_cache_size_default() { fn state_cache_size_default() {
CommandLineTest::new() CommandLineTest::new()
.run_with_zero_port() .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] #[test]
fn state_cache_size_flag() { fn state_cache_size_flag() {