@@ -4067,7 +4067,7 @@ mod tests {
40674067 fn mpp_with_last_hops ( ) {
40684068 // Previously, if we tried to send an MPP payment to a destination which was only reachable
40694069 // via a single last-hop route hint, we'd fail to route if we first collected routes
4070- // totaling close, but not quite enough to fund the full payment.
4070+ // totaling close but not quite enough to fund the full payment.
40714071 //
40724072 // This was because we considered last-hop hints to have exactly the sought payment amount
40734073 // instead of the amount we were trying to collect, needlessly limiting our path searching
@@ -4091,11 +4091,11 @@ mod tests {
40914091 htlc_maximum_msat: None ,
40924092 } ] ) ] ) ;
40934093
4094- // Keep only two paths from us to nodes[2], one with no fee and a 90sat HTLC maximum, one
4095- // with a slight fee and a 20sat *minimum* . Previously, trying to route 100 sats to
4096- // nodes[2] here would first use the 90sat no-fee route and then fail to find a path along
4097- // the second route as we think we can only send up to 10 sats over the last-hop but have a
4098- // minimum of 20 sats .
4094+ // Keep only two paths from us to nodes[2], both with a 99sat HTLC maximum, with one with
4095+ // no fee and one with a 1msat fee . Previously, trying to route 100 sats to nodes[2] here
4096+ // would first use the no-fee route and then fail to find a path along the second route as
4097+ // we think we can only send up to 1 additional sat over the last-hop but refuse to as its
4098+ // under 5% of our payment amount .
40994099 update_channel ( & net_graph_msg_handler, & secp_ctx, & our_privkey, UnsignedChannelUpdate {
41004100 chain_hash : genesis_block ( Network :: Testnet ) . header . block_hash ( ) ,
41014101 short_channel_id : 1 ,
@@ -4115,7 +4115,7 @@ mod tests {
41154115 flags : 0 ,
41164116 cltv_expiry_delta : u16:: max_value ( ) ,
41174117 htlc_minimum_msat : 0 ,
4118- htlc_maximum_msat : OptionalField :: Present ( 60_000 ) ,
4118+ htlc_maximum_msat : OptionalField :: Present ( 99_000 ) ,
41194119 fee_base_msat : u32:: max_value ( ) ,
41204120 fee_proportional_millionths : u32:: max_value ( ) ,
41214121 excess_data : Vec :: new ( )
0 commit comments