You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
continue automatically after fail_htlc in receiving an HTLC
If we receive an HTLC and are processing it a potential MPP part,
we always continue in the per-HTLC loop if we call the `fail_htlc`
macro, thus its nice to actually do the `continue` therein rather
than at the callsites.
log_trace!(self.logger,"Failing new HTLC with payment_hash {} as we already had an existing keysend HTLC with the same payment hash", log_bytes!(payment_hash.0));
if claimable_payments.pending_claiming_payments.contains_key(&payment_hash){
3467
3464
fail_htlc!(claimable_htlc, payment_hash);
3468
-
continue
3469
3465
}
3470
3466
match claimable_payments.claimable_payments.entry(payment_hash){
3471
3467
hash_map::Entry::Vacant(e) => {
@@ -3500,7 +3496,6 @@ where
3500
3496
if payment_data.is_none(){
3501
3497
log_trace!(self.logger,"Failing new keysend HTLC with payment_hash {} because we already have an inbound payment with the same payment hash", log_bytes!(payment_hash.0));
3502
3498
fail_htlc!(claimable_htlc, payment_hash);
3503
-
continue
3504
3499
};
3505
3500
let payment_data = payment_data.unwrap();
3506
3501
if inbound_payment.get().payment_secret != payment_data.payment_secret{
0 commit comments