Skip to content

Commit

Permalink
chore: reexport crates in TestEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
LagginTimes committed May 3, 2024
1 parent a1a8c03 commit 16b706b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 0 additions & 2 deletions crates/testenv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bitcoincore-rpc = { version = "0.18" }
bdk_chain = { path = "../chain", version = "0.13", default-features = false }
electrsd = { version= "0.27.1", features = ["bitcoind_25_0", "esplora_a33e97e1", "legacy"] }
anyhow = { version = "1" }

[features]
default = ["std"]
Expand Down
9 changes: 7 additions & 2 deletions crates/testenv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ use bitcoincore_rpc::{
bitcoincore_rpc_json::{GetBlockTemplateModes, GetBlockTemplateRules},
RpcApi,
};
pub use electrsd;
pub use electrsd::bitcoind;
pub use electrsd::bitcoind::anyhow;
pub use electrsd::bitcoind::bitcoincore_rpc;
pub use electrsd::electrum_client;
use electrsd::electrum_client::ElectrumApi;
use std::time::Duration;

Expand Down Expand Up @@ -261,8 +266,8 @@ impl TestEnv {
#[cfg(test)]
mod test {
use crate::TestEnv;
use anyhow::Result;
use bitcoincore_rpc::RpcApi;
use electrsd::bitcoind::anyhow::Result;
use electrsd::bitcoind::bitcoincore_rpc::RpcApi;

/// This checks that reorgs initiated by `bitcoind` is detected by our `electrsd` instance.
#[test]
Expand Down

0 comments on commit 16b706b

Please sign in to comment.