Skip to content

Commit 8adfccf

Browse files
committed
Merge branch 'main' into ceyhun/bridge_backend_support
2 parents fc51959 + d09ca9e commit 8adfccf

File tree

13 files changed

+341
-1214
lines changed

13 files changed

+341
-1214
lines changed

Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@ tempfile = "3.8"
1919
tokio = { version = "1.39", features = ["full"] }
2020
toml = "0.8.0"
2121
which = "6.0.1"
22-
23-
# Eth client dependencies
24-
alloy = { version = "0.2.1", features = ["hyper", "rpc-types-eth", "provider-http", "signers", "signer-local"] }
2522
jsonrpsee = { version = "0.24.2", features = ["http-client", "ws-client"] }
26-
reqwest = { version = "=0.12.5", features = ["rustls-tls", "json", "http2"], default-features = false }
27-
reth-primitives = { git = "https://github.com/paradigmxyz/reth", rev = "a206eb3690e5a51d3c797fed2a6ed722e36863eb", default-features = false }
28-
reth-rpc-eth-types = { git = "https://github.com/paradigmxyz/reth", rev = "a206eb3690e5a51d3c797fed2a6ed722e36863eb", default-features = false }
29-
reth-rpc-types = { git = "https://github.com/paradigmxyz/reth", rev = "a206eb3690e5a51d3c797fed2a6ed722e36863eb", default-features = false, features = ["jsonrpsee-types"] }
3023

3124
# Citrea dependencies
3225
bitcoin-da = { git = "https://github.com/chainwayxyz/citrea", rev = "82bf52d", features = ["native"] }

src/bitcoin.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use super::{
2121
config::BitcoinConfig,
2222
docker::DockerEnv,
2323
framework::TestContext,
24-
traits::{LogProvider, Node, Restart, SpawnOutput},
24+
traits::{LogProvider, NodeT, Restart, SpawnOutput},
2525
Result,
2626
};
2727
use crate::node::NodeKind;
@@ -148,7 +148,7 @@ impl BitcoinNode {
148148
async fn spawn(config: &BitcoinConfig, docker: &Arc<Option<DockerEnv>>) -> Result<SpawnOutput> {
149149
match docker.as_ref() {
150150
Some(docker) => docker.spawn(config.into()).await,
151-
None => <Self as Node>::spawn(config),
151+
None => <Self as NodeT>::spawn(config),
152152
}
153153
}
154154
}
@@ -186,7 +186,7 @@ impl RpcApi for BitcoinNode {
186186
}
187187

188188
#[async_trait]
189-
impl Node for BitcoinNode {
189+
impl NodeT for BitcoinNode {
190190
type Config = BitcoinConfig;
191191
type Client = Client;
192192

@@ -234,6 +234,10 @@ impl Node for BitcoinNode {
234234
fn config_mut(&mut self) -> &mut Self::Config {
235235
&mut self.config
236236
}
237+
238+
fn config(&self) -> &Self::Config {
239+
&self.config
240+
}
237241
}
238242

239243
#[async_trait]

0 commit comments

Comments
 (0)