@@ -8124,23 +8124,23 @@ fn test_override_0msat_htlc_minimum() {
81248124#[ test]
81258125fn test_channel_update_has_correct_htlc_maximum_msat ( ) {
81268126 // Tests that the `ChannelUpdate` message has the correct values for `htlc_maximum_msat` set.
8127- // Bolt 7 specifies that the if present, the `htlc_maximum_msat`:
8127+ // Bolt 7 specifies that if present `htlc_maximum_msat`:
81288128 // 1. MUST be set to less than or equal to the channel capacity. In LDK, this is capped to
81298129 // 90% of the `channel_value`.
81308130 // 2. MUST be set to less than or equal to the `max_htlc_value_in_flight_msat` received from the peer.
81318131
81328132 let mut config_30_percent = UserConfig :: default ( ) ;
81338133 config_30_percent. channel_options . announced_channel = true ;
8134- config_30_percent. channel_options . holder_max_htlc_value_in_flight_msat_channel_value_percent = 30 ;
8134+ config_30_percent. own_channel_config . max_inbound_htlc_value_in_flight_percent_of_channel = 30 ;
81358135 let mut config_50_percent = UserConfig :: default ( ) ;
81368136 config_50_percent. channel_options . announced_channel = true ;
8137- config_50_percent. channel_options . holder_max_htlc_value_in_flight_msat_channel_value_percent = 50 ;
8137+ config_50_percent. own_channel_config . max_inbound_htlc_value_in_flight_percent_of_channel = 50 ;
81388138 let mut config_95_percent = UserConfig :: default ( ) ;
81398139 config_95_percent. channel_options . announced_channel = true ;
8140- config_95_percent. channel_options . holder_max_htlc_value_in_flight_msat_channel_value_percent = 95 ;
8140+ config_95_percent. own_channel_config . max_inbound_htlc_value_in_flight_percent_of_channel = 95 ;
81418141 let mut config_100_percent = UserConfig :: default ( ) ;
81428142 config_100_percent. channel_options . announced_channel = true ;
8143- config_100_percent. channel_options . holder_max_htlc_value_in_flight_msat_channel_value_percent = 100 ;
8143+ config_100_percent. own_channel_config . max_inbound_htlc_value_in_flight_percent_of_channel = 100 ;
81448144
81458145 let chanmon_cfgs = create_chanmon_cfgs ( 4 ) ;
81468146 let node_cfgs = create_node_cfgs ( 4 , & chanmon_cfgs) ;
0 commit comments