Skip to content

Commit a49f646

Browse files
committed
f comment details
1 parent 2ead59b commit a49f646

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7585,6 +7585,9 @@ where
75857585
// deliberately keeping the pending payment around forever.
75867586
// Given it should only occur when we have a channel we're
75877587
// force-closing for being stale that's okay.
7588+
// The alternative would be to wipe the state by claiming,
7589+
// generating a `PaymentPathSuccessful` event but regenerating
7590+
// it and the `PaymentSent` on every restart, forever.
75887591
pending_outbounds.claim_htlc(payment_id, preimage, session_priv, path, false, &pending_events, &args.logger);
75897592
pending_events_read = pending_events.into_inner().unwrap();
75907593
}

0 commit comments

Comments
 (0)