Skip to content

Commit 384516e

Browse files
committed
Bump electrum_client dependency to v0.22
.. which is the newest version and also aligns with recent BDK releases.
1 parent 43de15e commit 384516e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

lightning-transaction-sync/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ lightning-macros = { version = "0.2", path = "../lightning-macros", default-feat
2828
bitcoin = { version = "0.32.2", default-features = false }
2929
futures = { version = "0.3", optional = true }
3030
esplora-client = { version = "0.11", default-features = false, optional = true }
31-
electrum-client = { version = "0.21.0", optional = true }
31+
electrum-client = { version = "0.22.0", optional = true }
3232

3333
[dev-dependencies]
3434
lightning = { version = "0.2.0", path = "../lightning", default-features = false, features = ["std", "_test_utils"] }
3535
tokio = { version = "1.35.0", features = ["macros"] }
3636

3737
[target.'cfg(not(target_os = "windows"))'.dev-dependencies]
38-
electrsd = { version = "0.28.0", default-features = false, features = ["legacy"] }
38+
#electrsd = { version = "0.31.0", default-features = false, features = ["legacy"] }
39+
electrsd = { git = "https://github.com/tnull/electrsd.git", branch = "2025-03-upgrade-corepc", default-features = false, features = ["legacy"] }
40+
corepc-node = { version = "0.6.0", default-features = false, features = ["28_0"] }
3941

4042
[lints.rust.unexpected_cfgs]
4143
level = "forbid"

lightning-transaction-sync/tests/integration_tests.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use bitcoin::block::Header;
1717
use bitcoin::constants::genesis_block;
1818
use bitcoin::network::Network;
1919
use bitcoin::{Amount, BlockHash, Txid};
20-
use bitcoind::bitcoincore_rpc::RpcApi;
21-
use electrsd::bitcoind::bitcoincore_rpc::bitcoincore_rpc_json::AddressType;
22-
use electrsd::{bitcoind, bitcoind::BitcoinD, ElectrsD};
20+
21+
use electrsd::corepc_node::Node as BitcoinD;
22+
use electrsd::{corepc_node, ElectrsD};
2323

2424
use std::collections::{HashMap, HashSet};
2525
use std::env;
@@ -28,10 +28,10 @@ use std::time::Duration;
2828

2929
pub fn setup_bitcoind_and_electrsd() -> (BitcoinD, ElectrsD) {
3030
let bitcoind_exe =
31-
env::var("BITCOIND_EXE").ok().or_else(|| bitcoind::downloaded_exe_path().ok()).expect(
31+
env::var("BITCOIND_EXE").ok().or_else(|| corepc_node::downloaded_exe_path().ok()).expect(
3232
"you need to provide an env var BITCOIND_EXE or specify a bitcoind version feature",
3333
);
34-
let mut bitcoind_conf = bitcoind::Conf::default();
34+
let mut bitcoind_conf = corepc_node::Conf::default();
3535
bitcoind_conf.network = "regtest";
3636
let bitcoind = BitcoinD::with_conf(bitcoind_exe, &bitcoind_conf).unwrap();
3737

0 commit comments

Comments
 (0)