Remove snapshot cache related code (#5661)

* Remove snapshot cache and other references.

* Fix default state cache size in docs

* Remove cache miss comment entirely

* Add state cache CLI tests
This commit is contained in:
Jimmy Chen
2024-05-01 02:08:13 +10:00
committed by GitHub
parent d0602c3207
commit 63fad7e330
6 changed files with 16 additions and 537 deletions

View File

@@ -1846,6 +1846,19 @@ fn block_cache_size_flag() {
.with_config(|config| assert_eq!(config.store.block_cache_size, new_non_zero_usize(4)));
}
#[test]
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)));
}
#[test]
fn state_cache_size_flag() {
CommandLineTest::new()
.flag("state-cache-size", Some("64"))
.run_with_zero_port()
.with_config(|config| assert_eq!(config.store.state_cache_size, new_non_zero_usize(64)));
}
#[test]
fn historic_state_cache_size_flag() {
CommandLineTest::new()
.flag("historic-state-cache-size", Some("4"))