Skip to content

Commit cfbd887

Browse files
committed
f Fix https support for esplora
1 parent 4538c8a commit cfbd887

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ lightning-transaction-sync = { version = "0.0.114", features = ["esplora-async"]
4141
#lightning-rapid-gossip-sync = { path = "../rust-lightning/lightning-rapid-gossip-sync" }
4242
#lightning-transaction-sync = { path = "../rust-lightning/lightning-transaction-sync", features = ["esplora-async"] }
4343

44-
bdk = { version = "0.27.1", default-features = false, features = ["async-interface", "use-esplora-async", "key-value-db"]}
44+
bdk = { version = "0.27.1", default-features = false, features = ["async-interface", "use-esplora-async", "key-value-db", "reqwest-default-tls"]}
4545
bitcoin = "0.29.2"
4646

4747
rand = "0.8.5"

src/tests/functional_tests.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,14 @@ fn channel_open_fails_when_funds_insufficient() {
230230
node_a.connect_open_channel(&node_b_addr, 120000, true)
231231
);
232232
}
233+
234+
#[test]
235+
fn connect_to_public_testnet_esplora() {
236+
let mut config = rand_config();
237+
config.esplora_server_url = "https://blockstream.info/testnet/api".to_string();
238+
config.network = bitcoin::Network::Testnet;
239+
let node = Builder::from_config(config).build();
240+
node.start().unwrap();
241+
node.sync_wallets().unwrap();
242+
node.stop().unwrap();
243+
}

0 commit comments

Comments
 (0)