@@ -171,7 +171,7 @@ fn archive_fully_resolved_monitors() {
171
171
let chanmon_cfgs = create_chanmon_cfgs ( 2 ) ;
172
172
let node_cfgs = create_node_cfgs ( 2 , & chanmon_cfgs) ;
173
173
let mut user_config = test_default_channel_config ( ) ;
174
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config) , Some ( user_config) ] ) ;
174
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config. clone ( ) ) , Some ( user_config) ] ) ;
175
175
let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
176
176
177
177
let ( _, _, chan_id, funding_tx) =
@@ -315,7 +315,7 @@ fn do_chanmon_claim_value_coop_close(anchors: bool) {
315
315
user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
316
316
user_config. manually_accept_inbound_channels = true ;
317
317
}
318
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config) , Some ( user_config) ] ) ;
318
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config. clone ( ) ) , Some ( user_config) ] ) ;
319
319
let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
320
320
321
321
let ( _, _, chan_id, funding_tx) =
@@ -459,7 +459,7 @@ fn do_test_claim_value_force_close(anchors: bool, prev_commitment_tx: bool) {
459
459
user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
460
460
user_config. manually_accept_inbound_channels = true ;
461
461
}
462
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config) , Some ( user_config) ] ) ;
462
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config. clone ( ) ) , Some ( user_config) ] ) ;
463
463
let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
464
464
465
465
let coinbase_tx = Transaction {
@@ -862,7 +862,7 @@ fn do_test_balances_on_local_commitment_htlcs(anchors: bool) {
862
862
user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
863
863
user_config. manually_accept_inbound_channels = true ;
864
864
}
865
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config) , Some ( user_config) ] ) ;
865
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config. clone ( ) ) , Some ( user_config) ] ) ;
866
866
let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
867
867
868
868
let coinbase_tx = Transaction {
@@ -1359,7 +1359,7 @@ fn do_test_revoked_counterparty_commitment_balances(anchors: bool, confirm_htlc_
1359
1359
user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
1360
1360
user_config. manually_accept_inbound_channels = true ;
1361
1361
}
1362
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config) , Some ( user_config) ] ) ;
1362
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config. clone ( ) ) , Some ( user_config) ] ) ;
1363
1363
let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
1364
1364
1365
1365
let ( _, _, chan_id, funding_tx) =
@@ -1645,7 +1645,7 @@ fn do_test_revoked_counterparty_htlc_tx_balances(anchors: bool) {
1645
1645
user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
1646
1646
user_config. manually_accept_inbound_channels = true ;
1647
1647
}
1648
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config) , Some ( user_config) ] ) ;
1648
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config. clone ( ) ) , Some ( user_config) ] ) ;
1649
1649
let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
1650
1650
1651
1651
let coinbase_tx = Transaction {
@@ -1946,7 +1946,7 @@ fn do_test_revoked_counterparty_aggregated_claims(anchors: bool) {
1946
1946
user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
1947
1947
user_config. manually_accept_inbound_channels = true ;
1948
1948
}
1949
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config) , Some ( user_config) ] ) ;
1949
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config. clone ( ) ) , Some ( user_config) ] ) ;
1950
1950
let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
1951
1951
1952
1952
let coinbase_tx = Transaction {
@@ -2236,7 +2236,7 @@ fn do_test_claimable_balance_correct_while_payment_pending(outbound_payment: boo
2236
2236
user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
2237
2237
user_config. manually_accept_inbound_channels = true ;
2238
2238
}
2239
- let node_chanmgrs = create_node_chanmgrs ( 3 , & node_cfgs, & [ Some ( user_config) , Some ( user_config) , Some ( user_config) ] ) ;
2239
+ let node_chanmgrs = create_node_chanmgrs ( 3 , & node_cfgs, & [ Some ( user_config. clone ( ) ) , Some ( user_config. clone ( ) ) , Some ( user_config) ] ) ;
2240
2240
let nodes = create_network ( 3 , & node_cfgs, & node_chanmgrs) ;
2241
2241
2242
2242
let coinbase_tx = Transaction {
@@ -2401,7 +2401,7 @@ fn do_test_monitor_rebroadcast_pending_claims(anchors: bool) {
2401
2401
config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
2402
2402
config. manually_accept_inbound_channels = true ;
2403
2403
}
2404
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( config) , Some ( config) ] ) ;
2404
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( config. clone ( ) ) , Some ( config) ] ) ;
2405
2405
let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
2406
2406
2407
2407
let ( _, _, _, chan_id, funding_tx) = create_chan_between_nodes_with_value (
@@ -2533,7 +2533,7 @@ fn do_test_yield_anchors_events(have_htlcs: bool) {
2533
2533
anchors_config. channel_handshake_config . announce_for_forwarding = true ;
2534
2534
anchors_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
2535
2535
anchors_config. manually_accept_inbound_channels = true ;
2536
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( anchors_config) , Some ( anchors_config) ] ) ;
2536
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( anchors_config. clone ( ) ) , Some ( anchors_config) ] ) ;
2537
2537
let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
2538
2538
2539
2539
let ( _, _, chan_id, funding_tx) = create_announced_chan_between_nodes_with_value (
@@ -2731,7 +2731,7 @@ fn test_anchors_aggregated_revoked_htlc_tx() {
2731
2731
anchors_config. channel_handshake_config . announce_for_forwarding = true ;
2732
2732
anchors_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
2733
2733
anchors_config. manually_accept_inbound_channels = true ;
2734
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( anchors_config) , Some ( anchors_config) ] ) ;
2734
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( anchors_config. clone ( ) ) , Some ( anchors_config. clone ( ) ) ] ) ;
2735
2735
let bob_deserialized;
2736
2736
2737
2737
let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
@@ -3032,7 +3032,7 @@ fn do_test_anchors_monitor_fixes_counterparty_payment_script_on_reload(confirm_c
3032
3032
let mut user_config = test_default_channel_config ( ) ;
3033
3033
user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
3034
3034
user_config. manually_accept_inbound_channels = true ;
3035
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config) , Some ( user_config) ] ) ;
3035
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config. clone ( ) ) , Some ( user_config. clone ( ) ) ] ) ;
3036
3036
let node_deserialized;
3037
3037
let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
3038
3038
@@ -3120,7 +3120,7 @@ fn do_test_monitor_claims_with_random_signatures(anchors: bool, confirm_counterp
3120
3120
user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
3121
3121
user_config. manually_accept_inbound_channels = true ;
3122
3122
}
3123
- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config) , Some ( user_config) ] ) ;
3123
+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ Some ( user_config. clone ( ) ) , Some ( user_config) ] ) ;
3124
3124
let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
3125
3125
3126
3126
let coinbase_tx = Transaction {
0 commit comments