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){
3455
3452
fail_htlc!(claimable_htlc, payment_hash);
3456
-
continue
3457
3453
}
3458
3454
match claimable_payments.claimable_htlcs.entry(payment_hash){
3459
3455
hash_map::Entry::Vacant(e) => {
@@ -3488,7 +3484,6 @@ where
3488
3484
if payment_data.is_none(){
3489
3485
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));
3490
3486
fail_htlc!(claimable_htlc, payment_hash);
3491
-
continue
3492
3487
};
3493
3488
let payment_data = payment_data.unwrap();
3494
3489
if inbound_payment.get().payment_secret != payment_data.payment_secret{
0 commit comments