From 61d157b0c38adb01960751a12a61d85f6ee8c8bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ceyhun=20=C5=9Een?= Date: Mon, 7 Oct 2024 11:45:30 +0300 Subject: [PATCH] test_case: Add bridge backend config. --- src/test_case.rs | 6 ++++++ src/traits.rs | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/test_case.rs b/src/test_case.rs index aa59b50..debd493 100644 --- a/src/test_case.rs +++ b/src/test_case.rs @@ -294,6 +294,12 @@ pub trait TestCase: Send + Sync + 'static { BitcoinConfig::default() } + /// Returns the bridge backend configuration for the test. + /// Override this method to provide a custom bridge backend configuration. + fn bridge_backend_config() -> BridgeBackendConfig { + BridgeBackendConfig::default() + } + /// Returns the sequencer configuration for the test. /// Override this method to provide a custom sequencer configuration. fn sequencer_config() -> SequencerConfig { diff --git a/src/traits.rs b/src/traits.rs index 945d7fa..f8f7f10 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -20,8 +20,8 @@ pub enum SpawnOutput { Container(ContainerSpawnOutput), } -/// The Node trait defines the common interface shared between -/// BitcoinNode, Prover, Sequencer and FullNode +/// The [`NodeT`] trait defines the common interface shared between +/// BitcoinNode, Bridge Backend, Prover, Sequencer and FullNode #[async_trait] pub trait NodeT: Send { type Config: Send;