Skip to content

Commit fe3fa92

Browse files
committed
f s/BitcoinRpc/BitcoindRpc/
1 parent 6365c55 commit fe3fa92

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

tests/common/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ type TestNode = Node;
244244
#[derive(Clone)]
245245
pub(crate) enum TestChainSource<'a> {
246246
Esplora(&'a ElectrsD),
247-
BitcoinRpc(&'a BitcoinD),
247+
BitcoindRpc(&'a BitcoinD),
248248
}
249249

250250
macro_rules! setup_builder {
@@ -293,7 +293,7 @@ pub(crate) fn setup_node(chain_source: &TestChainSource, config: Config) -> Test
293293
sync_config.lightning_wallet_sync_interval_secs = 100000;
294294
builder.set_chain_source_esplora(esplora_url.clone(), Some(sync_config));
295295
},
296-
TestChainSource::BitcoinRpc(bitcoind) => {
296+
TestChainSource::BitcoindRpc(bitcoind) => {
297297
let rpc_host = bitcoind.params.rpc_socket.ip().to_string();
298298
let rpc_port = bitcoind.params.rpc_socket.port();
299299
let values = bitcoind.params.get_cookie_values().unwrap().unwrap();

tests/integration_tests_rust.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use std::sync::Arc;
2828
#[test]
2929
fn channel_full_cycle() {
3030
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
31-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
31+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
3232
let (node_a, node_b) = setup_two_nodes(&chain_source, false, true, false);
3333
do_channel_full_cycle(node_a, node_b, &bitcoind.client, &electrsd.client, false, true, false);
3434
}
@@ -44,39 +44,39 @@ fn channel_full_cycle_esplora() {
4444
#[test]
4545
fn channel_full_cycle_force_close() {
4646
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
47-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
47+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
4848
let (node_a, node_b) = setup_two_nodes(&chain_source, false, true, false);
4949
do_channel_full_cycle(node_a, node_b, &bitcoind.client, &electrsd.client, false, true, true);
5050
}
5151

5252
#[test]
5353
fn channel_full_cycle_force_close_trusted_no_reserve() {
5454
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
55-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
55+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
5656
let (node_a, node_b) = setup_two_nodes(&chain_source, false, true, true);
5757
do_channel_full_cycle(node_a, node_b, &bitcoind.client, &electrsd.client, false, true, true);
5858
}
5959

6060
#[test]
6161
fn channel_full_cycle_0conf() {
6262
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
63-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
63+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
6464
let (node_a, node_b) = setup_two_nodes(&chain_source, true, true, false);
6565
do_channel_full_cycle(node_a, node_b, &bitcoind.client, &electrsd.client, true, true, false)
6666
}
6767

6868
#[test]
6969
fn channel_full_cycle_legacy_staticremotekey() {
7070
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
71-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
71+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
7272
let (node_a, node_b) = setup_two_nodes(&chain_source, false, false, false);
7373
do_channel_full_cycle(node_a, node_b, &bitcoind.client, &electrsd.client, false, false, false);
7474
}
7575

7676
#[test]
7777
fn channel_open_fails_when_funds_insufficient() {
7878
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
79-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
79+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
8080
let (node_a, node_b) = setup_two_nodes(&chain_source, false, true, false);
8181

8282
let addr_a = node_a.onchain_payment().new_address().unwrap();
@@ -280,7 +280,7 @@ fn start_stop_reinit() {
280280
#[test]
281281
fn onchain_spend_receive() {
282282
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
283-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
283+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
284284
let (node_a, node_b) = setup_two_nodes(&chain_source, false, true, false);
285285

286286
let addr_a = node_a.onchain_payment().new_address().unwrap();
@@ -330,7 +330,7 @@ fn onchain_spend_receive() {
330330
fn sign_verify_msg() {
331331
let (bitcoind, _electrsd) = setup_bitcoind_and_electrsd();
332332
let config = random_config(true);
333-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
333+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
334334
let node = setup_node(&chain_source, config);
335335

336336
// Tests arbitrary message signing and later verification
@@ -348,7 +348,7 @@ fn connection_restart_behavior() {
348348

349349
fn do_connection_restart_behavior(persist: bool) {
350350
let (bitcoind, _electrsd) = setup_bitcoind_and_electrsd();
351-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
351+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
352352
let (node_a, node_b) = setup_two_nodes(&chain_source, false, false, false);
353353

354354
let node_id_a = node_a.node_id();
@@ -400,7 +400,7 @@ fn do_connection_restart_behavior(persist: bool) {
400400
#[test]
401401
fn concurrent_connections_succeed() {
402402
let (bitcoind, _electrsd) = setup_bitcoind_and_electrsd();
403-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
403+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
404404
let (node_a, node_b) = setup_two_nodes(&chain_source, false, true, false);
405405

406406
let node_a = Arc::new(node_a);
@@ -431,7 +431,7 @@ fn concurrent_connections_succeed() {
431431
#[test]
432432
fn simple_bolt12_send_receive() {
433433
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
434-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
434+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
435435
let (node_a, node_b) = setup_two_nodes(&chain_source, false, true, false);
436436

437437
let address_a = node_a.onchain_payment().new_address().unwrap();
@@ -639,7 +639,7 @@ fn simple_bolt12_send_receive() {
639639
#[test]
640640
fn generate_bip21_uri() {
641641
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
642-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
642+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
643643
let (node_a, node_b) = setup_two_nodes(&chain_source, false, true, false);
644644

645645
let address_a = node_a.onchain_payment().new_address().unwrap();
@@ -681,7 +681,7 @@ fn generate_bip21_uri() {
681681
#[test]
682682
fn unified_qr_send_receive() {
683683
let (bitcoind, electrsd) = setup_bitcoind_and_electrsd();
684-
let chain_source = TestChainSource::BitcoinRpc(&bitcoind);
684+
let chain_source = TestChainSource::BitcoindRpc(&bitcoind);
685685
let (node_a, node_b) = setup_two_nodes(&chain_source, false, true, false);
686686

687687
let address_a = node_a.onchain_payment().new_address().unwrap();

0 commit comments

Comments
 (0)