Skip to content

Commit ea09145

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

File tree

7 files changed

+277
-286
lines changed

7 files changed

+277
-286
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: 2 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};
@@ -79,7 +79,7 @@ pub fn test_sync_performance(c: &mut Criterion) {
7979
// Setup receiver.
8080
let genesis_cp = CheckPoint::new(bdk_core::BlockId {
8181
height: 0,
82-
hash: env.bitcoind.client.get_block_hash(0).unwrap(),
82+
hash: env.bitcoind.client.get_block_hash(0).unwrap().block_hash().unwrap(),
8383
});
8484

8585
{

0 commit comments

Comments
 (0)