@@ -172,7 +172,7 @@ fn test_0conf_limiting() {
172172
173173#[ test]
174174fn test_inbound_anchors_manual_acceptance ( ) {
175- let anchors_cfg = test_default_anchors_channel_config ( ) ;
175+ let anchors_cfg = test_default_channel_config ( ) ;
176176 do_test_manual_inbound_accept_with_override ( anchors_cfg, None ) ;
177177}
178178
@@ -190,7 +190,7 @@ fn test_inbound_anchors_config_overridden() {
190190 update_overrides : None ,
191191 } ;
192192
193- let mut anchors_cfg = test_default_anchors_channel_config ( ) ;
193+ let mut anchors_cfg = test_default_channel_config ( ) ;
194194 let accept_message = do_test_manual_inbound_accept_with_override ( anchors_cfg, Some ( overrides) ) ;
195195 assert_eq ! ( accept_message. common_fields. max_htlc_value_in_flight_msat, 5_000_000 ) ;
196196 assert_eq ! ( accept_message. common_fields. htlc_minimum_msat, 1_000 ) ;
@@ -306,9 +306,8 @@ fn test_zero_fee_commitments_downgrade_to_static_remote() {
306306 // are supported (but not accepted), but not legacy anchors.
307307 let mut initiator_cfg = test_default_channel_config ( ) ;
308308 initiator_cfg. channel_handshake_config . negotiate_anchor_zero_fee_commitments = true ;
309- initiator_cfg. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
310309
311- let mut receiver_cfg = test_default_channel_config ( ) ;
310+ let mut receiver_cfg = test_legacy_channel_config ( ) ;
312311 receiver_cfg. channel_handshake_config . negotiate_anchor_zero_fee_commitments = true ;
313312
314313 let start_type = ChannelTypeFeatures :: anchors_zero_fee_commitments ( ) ;
@@ -367,9 +366,8 @@ fn do_test_channel_type_downgrade(
367366fn test_no_channel_downgrade ( ) {
368367 // Tests that the local node will not retry when a `option_static_remote` channel is
369368 // rejected by a peer that advertises support for the feature.
370- let initiator_cfg = test_default_channel_config ( ) ;
369+ let initiator_cfg = test_legacy_channel_config ( ) ;
371370 let mut receiver_cfg = test_default_channel_config ( ) ;
372- receiver_cfg. channel_handshake_config . negotiate_anchors_zero_fee_htlc_tx = true ;
373371
374372 let chanmon_cfgs = create_chanmon_cfgs ( 2 ) ;
375373 let node_cfgs = create_node_cfgs ( 2 , & chanmon_cfgs) ;
@@ -459,11 +457,11 @@ fn test_channel_resumption_fail_post_funding() {
459457pub fn test_insane_channel_opens ( ) {
460458 // Stand up a network of 2 nodes
461459 use crate :: ln:: channel:: TOTAL_BITCOIN_SUPPLY_SATOSHIS ;
462- let mut cfg = UserConfig :: default ( ) ;
463- cfg . channel_handshake_limits . max_funding_satoshis = TOTAL_BITCOIN_SUPPLY_SATOSHIS + 1 ;
460+ let mut legacy_cfg = test_legacy_channel_config ( ) ;
461+ legacy_cfg . channel_handshake_limits . max_funding_satoshis = TOTAL_BITCOIN_SUPPLY_SATOSHIS + 1 ;
464462 let chanmon_cfgs = create_chanmon_cfgs ( 2 ) ;
465463 let node_cfgs = create_node_cfgs ( 2 , & chanmon_cfgs) ;
466- let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ None , Some ( cfg . clone ( ) ) ] ) ;
464+ let node_chanmgrs = create_node_chanmgrs ( 2 , & node_cfgs, & [ None , Some ( legacy_cfg . clone ( ) ) ] ) ;
467465 let nodes = create_network ( 2 , & node_cfgs, & node_chanmgrs) ;
468466
469467 let node_a_id = nodes[ 0 ] . node . get_our_node_id ( ) ;
@@ -473,7 +471,7 @@ pub fn test_insane_channel_opens() {
473471 // funding satoshis
474472 let channel_value_sat = 31337 ; // same as funding satoshis
475473 let channel_reserve_satoshis =
476- get_holder_selected_channel_reserve_satoshis ( channel_value_sat, & cfg ) ;
474+ get_holder_selected_channel_reserve_satoshis ( channel_value_sat, & legacy_cfg ) ;
477475 let push_msat = ( channel_value_sat - channel_reserve_satoshis) * 1000 ;
478476
479477 // Have node0 initiate a channel to node1 with aforementioned parameters
0 commit comments