@@ -8124,23 +8124,23 @@ fn test_override_0msat_htlc_minimum() {
8124
8124
#[ test]
8125
8125
fn test_channel_update_has_correct_htlc_maximum_msat ( ) {
8126
8126
// 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`:
8128
8128
// 1. MUST be set to less than or equal to the channel capacity. In LDK, this is capped to
8129
8129
// 90% of the `channel_value`.
8130
8130
// 2. MUST be set to less than or equal to the `max_htlc_value_in_flight_msat` received from the peer.
8131
8131
8132
8132
let mut config_30_percent = UserConfig :: default ( ) ;
8133
8133
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 ;
8135
8135
let mut config_50_percent = UserConfig :: default ( ) ;
8136
8136
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 ;
8138
8138
let mut config_95_percent = UserConfig :: default ( ) ;
8139
8139
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 ;
8141
8141
let mut config_100_percent = UserConfig :: default ( ) ;
8142
8142
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 ;
8144
8144
8145
8145
let chanmon_cfgs = create_chanmon_cfgs ( 4 ) ;
8146
8146
let node_cfgs = create_node_cfgs ( 4 , & chanmon_cfgs) ;
0 commit comments