chore: reexport crates in TestEnv
This commit is contained in:
parent
125959976f
commit
f6218e4741
@ -13,10 +13,8 @@ readme = "README.md"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitcoincore-rpc = { version = "0.18" }
|
|
||||||
bdk_chain = { path = "../chain", version = "0.13", default-features = false }
|
bdk_chain = { path = "../chain", version = "0.13", default-features = false }
|
||||||
electrsd = { version= "0.27.1", features = ["bitcoind_25_0", "esplora_a33e97e1", "legacy"] }
|
electrsd = { version= "0.27.1", features = ["bitcoind_25_0", "esplora_a33e97e1", "legacy"] }
|
||||||
anyhow = { version = "1" }
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
|
@ -11,6 +11,11 @@ use bitcoincore_rpc::{
|
|||||||
bitcoincore_rpc_json::{GetBlockTemplateModes, GetBlockTemplateRules},
|
bitcoincore_rpc_json::{GetBlockTemplateModes, GetBlockTemplateRules},
|
||||||
RpcApi,
|
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 electrsd::electrum_client::ElectrumApi;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
@ -261,8 +266,7 @@ impl TestEnv {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use crate::TestEnv;
|
use crate::TestEnv;
|
||||||
use anyhow::Result;
|
use electrsd::bitcoind::{anyhow::Result, bitcoincore_rpc::RpcApi};
|
||||||
use bitcoincore_rpc::RpcApi;
|
|
||||||
|
|
||||||
/// This checks that reorgs initiated by `bitcoind` is detected by our `electrsd` instance.
|
/// This checks that reorgs initiated by `bitcoind` is detected by our `electrsd` instance.
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user