Skip to content

Commit

Permalink
f clarify method comment
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinewallace committed Sep 13, 2024
1 parent 3fafbe4 commit 19dc035
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lightning/src/ln/outbound_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ impl PendingOutboundPayment {
// `ChannelManager` after transitioning from this state to `Retryable` prior to shutdown.
// Therefore, we need to move this payment to `Retryable` now to avoid double-paying if
// the recipient sends a duplicate invoice.
//
// We leave many fields as `None` if they are only used for retries, since we'll never
// retry on startup. See this method's callsite in `ChannelManager::read`, but this
// mirrors the behavior if an HTLC in a monitor is entirely missing from
// `OutboundPayments`.
*self = Self::Retryable {
retry_strategy: None,
attempts: PaymentAttempts::new(),
Expand Down

0 comments on commit 19dc035

Please sign in to comment.