mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
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:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user