Disable recovery persistence for test runs

This commit is contained in:
andrussal 2025-12-06 15:56:47 +01:00
parent 7eec43e58c
commit cf99459c1a
2 changed files with 8 additions and 4 deletions

View File

@ -247,7 +247,8 @@ pub fn create_executor_config(config: GeneralConfig) -> ExecutorConfig {
chain_start_time: config.time_config.chain_start_time,
},
mempool: MempoolConfig {
recovery_path: "./recovery/mempool.json".into(),
// Disable mempool recovery for hermetic tests.
recovery_path: PathBuf::new(),
},
sdp: SdpSettings { declaration: None },
wallet: WalletServiceSettings {
@ -293,7 +294,8 @@ fn build_blend_service_config(
let user = blend_serde::Config {
common: blend_serde::common::Config {
non_ephemeral_signing_key: config.private_key.clone(),
recovery_path_prefix: PathBuf::from("./recovery/blend"),
// Disable on-disk recovery in tests to avoid serde issues on replays.
recovery_path_prefix: PathBuf::new(),
},
core: blend_serde::core::Config {
backend: blend_serde::core::BackendConfig {

View File

@ -237,7 +237,8 @@ pub fn create_validator_config(config: GeneralConfig) -> ValidatorConfig {
chain_start_time: config.time_config.chain_start_time,
},
mempool: MempoolConfig {
recovery_path: "./recovery/mempool.json".into(),
// Disable mempool recovery for hermetic tests.
recovery_path: PathBuf::new(),
},
sdp: SdpSettings { declaration: None },
wallet: WalletServiceSettings {
@ -282,7 +283,8 @@ fn build_blend_service_config(
let user = blend_serde::Config {
common: blend_serde::common::Config {
non_ephemeral_signing_key: config.private_key.clone(),
recovery_path_prefix: PathBuf::from("./recovery/blend"),
// Disable on-disk recovery in tests to avoid serde issues on replays.
recovery_path_prefix: PathBuf::new(),
},
core: blend_serde::core::Config {
backend: blend_serde::core::BackendConfig {