@@ -28,7 +28,7 @@ use std::sync::Arc;
28
28
#[ test]
29
29
fn channel_full_cycle ( ) {
30
30
let ( bitcoind, electrsd) = setup_bitcoind_and_electrsd ( ) ;
31
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
31
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
32
32
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , true , false ) ;
33
33
do_channel_full_cycle ( node_a, node_b, & bitcoind. client , & electrsd. client , false , true , false ) ;
34
34
}
@@ -44,39 +44,39 @@ fn channel_full_cycle_esplora() {
44
44
#[ test]
45
45
fn channel_full_cycle_force_close ( ) {
46
46
let ( bitcoind, electrsd) = setup_bitcoind_and_electrsd ( ) ;
47
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
47
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
48
48
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , true , false ) ;
49
49
do_channel_full_cycle ( node_a, node_b, & bitcoind. client , & electrsd. client , false , true , true ) ;
50
50
}
51
51
52
52
#[ test]
53
53
fn channel_full_cycle_force_close_trusted_no_reserve ( ) {
54
54
let ( bitcoind, electrsd) = setup_bitcoind_and_electrsd ( ) ;
55
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
55
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
56
56
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , true , true ) ;
57
57
do_channel_full_cycle ( node_a, node_b, & bitcoind. client , & electrsd. client , false , true , true ) ;
58
58
}
59
59
60
60
#[ test]
61
61
fn channel_full_cycle_0conf ( ) {
62
62
let ( bitcoind, electrsd) = setup_bitcoind_and_electrsd ( ) ;
63
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
63
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
64
64
let ( node_a, node_b) = setup_two_nodes ( & chain_source, true , true , false ) ;
65
65
do_channel_full_cycle ( node_a, node_b, & bitcoind. client , & electrsd. client , true , true , false )
66
66
}
67
67
68
68
#[ test]
69
69
fn channel_full_cycle_legacy_staticremotekey ( ) {
70
70
let ( bitcoind, electrsd) = setup_bitcoind_and_electrsd ( ) ;
71
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
71
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
72
72
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , false , false ) ;
73
73
do_channel_full_cycle ( node_a, node_b, & bitcoind. client , & electrsd. client , false , false , false ) ;
74
74
}
75
75
76
76
#[ test]
77
77
fn channel_open_fails_when_funds_insufficient ( ) {
78
78
let ( bitcoind, electrsd) = setup_bitcoind_and_electrsd ( ) ;
79
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
79
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
80
80
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , true , false ) ;
81
81
82
82
let addr_a = node_a. onchain_payment ( ) . new_address ( ) . unwrap ( ) ;
@@ -280,7 +280,7 @@ fn start_stop_reinit() {
280
280
#[ test]
281
281
fn onchain_spend_receive ( ) {
282
282
let ( bitcoind, electrsd) = setup_bitcoind_and_electrsd ( ) ;
283
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
283
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
284
284
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , true , false ) ;
285
285
286
286
let addr_a = node_a. onchain_payment ( ) . new_address ( ) . unwrap ( ) ;
@@ -330,7 +330,7 @@ fn onchain_spend_receive() {
330
330
fn sign_verify_msg ( ) {
331
331
let ( bitcoind, _electrsd) = setup_bitcoind_and_electrsd ( ) ;
332
332
let config = random_config ( true ) ;
333
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
333
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
334
334
let node = setup_node ( & chain_source, config) ;
335
335
336
336
// Tests arbitrary message signing and later verification
@@ -348,7 +348,7 @@ fn connection_restart_behavior() {
348
348
349
349
fn do_connection_restart_behavior ( persist : bool ) {
350
350
let ( bitcoind, _electrsd) = setup_bitcoind_and_electrsd ( ) ;
351
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
351
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
352
352
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , false , false ) ;
353
353
354
354
let node_id_a = node_a. node_id ( ) ;
@@ -400,7 +400,7 @@ fn do_connection_restart_behavior(persist: bool) {
400
400
#[ test]
401
401
fn concurrent_connections_succeed ( ) {
402
402
let ( bitcoind, _electrsd) = setup_bitcoind_and_electrsd ( ) ;
403
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
403
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
404
404
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , true , false ) ;
405
405
406
406
let node_a = Arc :: new ( node_a) ;
@@ -431,7 +431,7 @@ fn concurrent_connections_succeed() {
431
431
#[ test]
432
432
fn simple_bolt12_send_receive ( ) {
433
433
let ( bitcoind, electrsd) = setup_bitcoind_and_electrsd ( ) ;
434
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
434
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
435
435
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , true , false ) ;
436
436
437
437
let address_a = node_a. onchain_payment ( ) . new_address ( ) . unwrap ( ) ;
@@ -639,7 +639,7 @@ fn simple_bolt12_send_receive() {
639
639
#[ test]
640
640
fn generate_bip21_uri ( ) {
641
641
let ( bitcoind, electrsd) = setup_bitcoind_and_electrsd ( ) ;
642
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
642
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
643
643
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , true , false ) ;
644
644
645
645
let address_a = node_a. onchain_payment ( ) . new_address ( ) . unwrap ( ) ;
@@ -681,7 +681,7 @@ fn generate_bip21_uri() {
681
681
#[ test]
682
682
fn unified_qr_send_receive ( ) {
683
683
let ( bitcoind, electrsd) = setup_bitcoind_and_electrsd ( ) ;
684
- let chain_source = TestChainSource :: BitcoinRpc ( & bitcoind) ;
684
+ let chain_source = TestChainSource :: BitcoindRpc ( & bitcoind) ;
685
685
let ( node_a, node_b) = setup_two_nodes ( & chain_source, false , true , false ) ;
686
686
687
687
let address_a = node_a. onchain_payment ( ) . new_address ( ) . unwrap ( ) ;
0 commit comments