Skip to content

Commit a2784f5

Browse files
committed
fix(tests): on bdk_esplora, bdk_electrum
- FIXME: update `bitcoind_rpc` to use `corepc-{node|client}` instead.
1 parent 6a64ad0 commit a2784f5

File tree

7 files changed

+287
-287
lines changed

7 files changed

+287
-287
lines changed

crates/bitcoind_rpc/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ workspace = true
1717

1818
[dependencies]
1919
bitcoin = { version = "0.32.0", default-features = false }
20+
# FIXME: (@leonardo) update the code to use corepc-node, and corepc-client instead and then remove this.
2021
bitcoincore-rpc = { version = "0.19.0" }
2122
bdk_core = { path = "../core", version = "0.6.1", default-features = false }
2223

2324
[dev-dependencies]
2425
bdk_bitcoind_rpc = { path = "." }
25-
bdk_testenv = { path = "../testenv" }
26+
# FIXME: (@leonardo) update the code to use corepc-node, and corepc-client instead and then remove this.
27+
bdk_testenv = { version = "0.13.1" }
2628
bdk_chain = { path = "../chain" }
2729

2830
[features]

crates/electrum/benches/test_sync.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use bdk_core::{
1010
CheckPoint,
1111
};
1212
use bdk_electrum::BdkElectrumClient;
13-
use bdk_testenv::{anyhow, bitcoincore_rpc::RpcApi, TestEnv};
13+
use bdk_testenv::{anyhow, TestEnv};
1414
use criterion::{criterion_group, criterion_main, Criterion};
1515
use electrum_client::ElectrumApi;
1616
use std::{collections::BTreeSet, time::Duration};
@@ -77,7 +77,15 @@ pub fn test_sync_performance(c: &mut Criterion) {
7777
);
7878

7979
// Setup receiver.
80-
let genesis_cp = CheckPoint::new(0, env.bitcoind.client.get_block_hash(0).unwrap());
80+
let genesis_cp = CheckPoint::new(
81+
0,
82+
env.bitcoind
83+
.client
84+
.get_block_hash(0)
85+
.unwrap()
86+
.block_hash()
87+
.unwrap(),
88+
);
8189

8290
{
8391
let electrum_client =

0 commit comments

Comments
 (0)