@@ -772,7 +772,7 @@ pub fn create_announced_chan_between_nodes_with_value<'a, 'b, 'c, 'd>(nodes: &'a
772
772
773
773
pub fn create_unannounced_chan_between_nodes_with_value < ' a , ' b , ' c , ' d > ( nodes : & ' a Vec < Node < ' b , ' c , ' d > > , a : usize , b : usize , channel_value : u64 , push_msat : u64 , a_flags : InitFeatures , b_flags : InitFeatures ) -> ( msgs:: ChannelReady , Transaction ) {
774
774
let mut no_announce_cfg = test_default_channel_config ( ) ;
775
- no_announce_cfg. own_channel_config . announced_channel = false ;
775
+ no_announce_cfg. channel_handshake_config . announced_channel = false ;
776
776
nodes[ a] . node . create_channel ( nodes[ b] . node . get_our_node_id ( ) , channel_value, push_msat, 42 , Some ( no_announce_cfg) ) . unwrap ( ) ;
777
777
let open_channel = get_event_msg ! ( nodes[ a] , MessageSendEvent :: SendOpenChannel , nodes[ b] . node. get_our_node_id( ) ) ;
778
778
nodes[ b] . node . handle_open_channel ( & nodes[ a] . node . get_our_node_id ( ) , a_flags, & open_channel) ;
@@ -1691,7 +1691,7 @@ pub fn do_claim_payment_along_route<'a, 'b, 'c>(origin_node: &Node<'a, 'b, 'c>,
1691
1691
$node. node. handle_update_fulfill_htlc( & $prev_node. node. get_our_node_id( ) , & next_msgs. as_ref( ) . unwrap( ) . 0 ) ;
1692
1692
let fee = $node. node. channel_state. lock( ) . unwrap( )
1693
1693
. by_id. get( & next_msgs. as_ref( ) . unwrap( ) . 0 . channel_id) . unwrap( )
1694
- . config. mutable . forwarding_fee_base_msat;
1694
+ . config. options . forwarding_fee_base_msat;
1695
1695
expect_payment_forwarded!( $node, $next_node, $prev_node, Some ( fee as u64 ) , false , false ) ;
1696
1696
expected_total_fee_msat += fee as u64 ;
1697
1697
check_added_monitors!( $node, 1 ) ;
@@ -1967,15 +1967,15 @@ pub fn test_default_channel_config() -> UserConfig {
1967
1967
let mut default_config = UserConfig :: default ( ) ;
1968
1968
// Set cltv_expiry_delta slightly lower to keep the final CLTV values inside one byte in our
1969
1969
// tests so that our script-length checks don't fail (see ACCEPTED_HTLC_SCRIPT_WEIGHT).
1970
- default_config. channel_options . cltv_expiry_delta = MIN_CLTV_EXPIRY_DELTA ;
1971
- default_config. own_channel_config . announced_channel = true ;
1972
- default_config. peer_channel_config_limits . force_announced_channel_preference = false ;
1970
+ default_config. channel_config . cltv_expiry_delta = MIN_CLTV_EXPIRY_DELTA ;
1971
+ default_config. channel_handshake_config . announced_channel = true ;
1972
+ default_config. channel_handshake_limits . force_announced_channel_preference = false ;
1973
1973
// When most of our tests were written, the default HTLC minimum was fixed at 1000.
1974
1974
// It now defaults to 1, so we simply set it to the expected value here.
1975
- default_config. own_channel_config . our_htlc_minimum_msat = 1000 ;
1975
+ default_config. channel_handshake_config . our_htlc_minimum_msat = 1000 ;
1976
1976
// When most of our tests were written, we didn't have the notion of a `max_dust_htlc_exposure_msat`,
1977
1977
// It now defaults to 5_000_000 msat; to avoid interfering with tests we bump it to 50_000_000 msat.
1978
- default_config. channel_options . max_dust_htlc_exposure_msat = 50_000_000 ;
1978
+ default_config. channel_config . max_dust_htlc_exposure_msat = 50_000_000 ;
1979
1979
default_config
1980
1980
}
1981
1981
0 commit comments