Skip to content

Commit

Permalink
test_case: Add bridge backend config.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Oct 7, 2024
1 parent 79d0f3a commit 61d157b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/test_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 61d157b

Please sign in to comment.