Skip to content

Commit af3988d

Browse files
committed
deps(bdk_testenv): bump electrsd to 0.31.0
1 parent cc15e5d commit af3988d

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

crates/testenv/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ workspace = true
1717

1818
[dependencies]
1919
bdk_chain = { path = "../chain", version = "0.21.1", default-features = false }
20-
electrsd = { version = "0.28.0", features = [ "legacy" ], default-features = false }
20+
electrsd = { version = "0.31.0", features = [ "legacy" ], default-features = false }
2121

2222
[dev-dependencies]
2323
bdk_testenv = { path = "." }
2424

2525
[features]
2626
default = ["std", "download"]
27-
download = ["electrsd/bitcoind_25_0", "electrsd/esplora_a33e97e1"]
27+
download = ["electrsd/corepc-node_25_2", "electrsd/esplora_a33e97e1"]
2828
std = ["bdk_chain/std"]
2929
serde = ["bdk_chain/serde"]
3030

crates/testenv/src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ use bitcoincore_rpc::{
1313
bitcoincore_rpc_json::{GetBlockTemplateModes, GetBlockTemplateRules},
1414
RpcApi,
1515
};
16-
use electrsd::bitcoind::anyhow::Context;
16+
use electrsd::corepc_node::anyhow::Context;
1717

1818
pub use electrsd;
19-
pub use electrsd::bitcoind;
20-
pub use electrsd::bitcoind::anyhow;
21-
pub use electrsd::bitcoind::bitcoincore_rpc;
19+
pub use electrsd::corepc_node;
20+
pub use electrsd::corepc_node::anyhow;
21+
// pub use electrsd::corepc_node::bitcoincore_rpc;
2222
pub use electrsd::electrum_client;
2323
use electrsd::electrum_client::ElectrumApi;
2424
use std::time::Duration;
2525

2626
/// Struct for running a regtest environment with a single `bitcoind` node with an `electrs`
2727
/// instance connected to it.
2828
pub struct TestEnv {
29-
pub bitcoind: electrsd::bitcoind::BitcoinD,
29+
pub bitcoind: electrsd::corepc_node::Node,
3030
pub electrsd: electrsd::ElectrsD,
3131
}
3232

3333
/// Configuration parameters.
3434
#[derive(Debug)]
3535
pub struct Config<'a> {
36-
/// [`bitcoind::Conf`]
37-
pub bitcoind: bitcoind::Conf<'a>,
36+
/// [`corepc_node::Conf`]
37+
pub bitcoind: electrsd::corepc_node::Conf<'a>,
3838
/// [`electrsd::Conf`]
3939
pub electrsd: electrsd::Conf<'a>,
4040
}
@@ -44,7 +44,7 @@ impl Default for Config<'_> {
4444
/// which is required for testing `bdk_esplora`.
4545
fn default() -> Self {
4646
Self {
47-
bitcoind: bitcoind::Conf::default(),
47+
bitcoind: corepc_node::Conf::default(),
4848
electrsd: {
4949
let mut conf = electrsd::Conf::default();
5050
conf.http_enabled = true;
@@ -64,11 +64,11 @@ impl TestEnv {
6464
pub fn new_with_config(config: Config) -> anyhow::Result<Self> {
6565
let bitcoind_exe = match std::env::var("BITCOIND_EXE") {
6666
Ok(path) => path,
67-
Err(_) => bitcoind::downloaded_exe_path().context(
67+
Err(_) => corepc_node::downloaded_exe_path().context(
6868
"you need to provide an env var BITCOIND_EXE or specify a bitcoind version feature",
6969
)?,
7070
};
71-
let bitcoind = bitcoind::BitcoinD::with_conf(bitcoind_exe, &config.bitcoind)?;
71+
let bitcoind = corepc_node::Node::with_conf(bitcoind_exe, &config.bitcoind)?;
7272

7373
let electrs_exe = match std::env::var("ELECTRS_EXE") {
7474
Ok(path) => path,
@@ -314,7 +314,7 @@ impl TestEnv {
314314
mod test {
315315
use crate::TestEnv;
316316
use core::time::Duration;
317-
use electrsd::bitcoind::{anyhow::Result, bitcoincore_rpc::RpcApi};
317+
use electrsd::corepc_node::{anyhow::Result, bitcoincore_rpc::RpcApi};
318318

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

0 commit comments

Comments
 (0)