Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
fixup supports_mpp check
Browse files Browse the repository at this point in the history
  • Loading branch information
johncantrell97 committed Nov 15, 2023
1 parent bce52db commit 5d94f65
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/jit_channel/channel_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ impl OutboundJITChannelState {
let total_expected_outbound_amount_msat =
htlcs.iter().map(|htlc| htlc.expected_outbound_amount_msat).sum();

let supports_mpp = payment_size_msat.is_some();

let expected_payment_size_msat =
payment_size_msat.unwrap_or(total_expected_outbound_amount_msat);

Expand All @@ -261,7 +259,8 @@ impl OutboundJITChannelState {
amt_to_forward_msat,
})
} else {
if supports_mpp {
// payment size being specified means MPP is supported
if payment_size_msat.is_some() {
Ok(OutboundJITChannelState::AwaitingPayment {
min_fee_msat: *min_fee_msat,
proportional_fee: *proportional_fee,
Expand Down

0 comments on commit 5d94f65

Please sign in to comment.