@@ -171,7 +171,7 @@ fn archive_fully_resolved_monitors() {
171171 let chanmon_cfgs = create_chanmon_cfgs ( 2 ) ;
172172 let node_cfgs = create_node_cfgs ( 2 , & chanmon_cfgs) ;
173173 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) ] ) ;
175175 let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
176176
177177 let ( _, _, chan_id, funding_tx) =
@@ -315,7 +315,7 @@ fn do_chanmon_claim_value_coop_close(anchors: bool) {
315315 user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
316316 user_config. manually_accept_inbound_channels = true ;
317317 }
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) ] ) ;
319319 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
320320
321321 let ( _, _, chan_id, funding_tx) =
@@ -459,7 +459,7 @@ fn do_test_claim_value_force_close(anchors: bool, prev_commitment_tx: bool) {
459459 user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
460460 user_config. manually_accept_inbound_channels = true ;
461461 }
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) ] ) ;
463463 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
464464
465465 let coinbase_tx = Transaction {
@@ -862,7 +862,7 @@ fn do_test_balances_on_local_commitment_htlcs(anchors: bool) {
862862 user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
863863 user_config. manually_accept_inbound_channels = true ;
864864 }
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) ] ) ;
866866 let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
867867
868868 let coinbase_tx = Transaction {
@@ -1359,7 +1359,7 @@ fn do_test_revoked_counterparty_commitment_balances(anchors: bool, confirm_htlc_
13591359 user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
13601360 user_config. manually_accept_inbound_channels = true ;
13611361 }
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) ] ) ;
13631363 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
13641364
13651365 let ( _, _, chan_id, funding_tx) =
@@ -1645,7 +1645,7 @@ fn do_test_revoked_counterparty_htlc_tx_balances(anchors: bool) {
16451645 user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
16461646 user_config. manually_accept_inbound_channels = true ;
16471647 }
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) ] ) ;
16491649 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
16501650
16511651 let coinbase_tx = Transaction {
@@ -1946,7 +1946,7 @@ fn do_test_revoked_counterparty_aggregated_claims(anchors: bool) {
19461946 user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
19471947 user_config. manually_accept_inbound_channels = true ;
19481948 }
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) ] ) ;
19501950 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
19511951
19521952 let coinbase_tx = Transaction {
@@ -2236,7 +2236,7 @@ fn do_test_claimable_balance_correct_while_payment_pending(outbound_payment: boo
22362236 user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
22372237 user_config. manually_accept_inbound_channels = true ;
22382238 }
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) ] ) ;
22402240 let nodes = create_network ( 3 , & node_cfgs, & node_chanmgrs) ;
22412241
22422242 let coinbase_tx = Transaction {
@@ -2401,7 +2401,7 @@ fn do_test_monitor_rebroadcast_pending_claims(anchors: bool) {
24012401 config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
24022402 config. manually_accept_inbound_channels = true ;
24032403 }
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) ] ) ;
24052405 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
24062406
24072407 let ( _, _, _, chan_id, funding_tx) = create_chan_between_nodes_with_value (
@@ -2533,7 +2533,7 @@ fn do_test_yield_anchors_events(have_htlcs: bool) {
25332533 anchors_config. channel_handshake_config . announce_for_forwarding = true ;
25342534 anchors_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
25352535 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) ] ) ;
25372537 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
25382538
25392539 let ( _, _, chan_id, funding_tx) = create_announced_chan_between_nodes_with_value (
@@ -2731,7 +2731,7 @@ fn test_anchors_aggregated_revoked_htlc_tx() {
27312731 anchors_config. channel_handshake_config . announce_for_forwarding = true ;
27322732 anchors_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
27332733 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 ( ) ) ] ) ;
27352735 let bob_deserialized;
27362736
27372737 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
30323032 let mut user_config = test_default_channel_config ( ) ;
30333033 user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
30343034 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 ( ) ) ] ) ;
30363036 let node_deserialized;
30373037 let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
30383038
@@ -3120,7 +3120,7 @@ fn do_test_monitor_claims_with_random_signatures(anchors: bool, confirm_counterp
31203120 user_config. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
31213121 user_config. manually_accept_inbound_channels = true ;
31223122 }
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) ] ) ;
31243124 let mut nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
31253125
31263126 let coinbase_tx = Transaction {
0 commit comments