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
if !self.default_configuration.accept_mpp_keysend && is_keysend && !claimable_payment.htlcs.is_empty(){
3588
3578
log_trace!(self.logger,"Failing new keysend HTLC with payment_hash {} as we already had an existing keysend HTLC with the same payment hash and our config states we don't accept MPP keysend", log_bytes!(payment_hash.0));
3589
3579
fail_htlc!(claimable_htlc, payment_hash);
3590
3580
}
3591
-
if purpose != claimable_payment.purpose {
3581
+
if$purpose != claimable_payment.purpose {
3592
3582
let log_keysend = |keysend| if keysend {"keysend"} else {"non-keysend"};
3593
3583
log_trace!(self.logger,"Failing new {} HTLC with payment_hash {} as we already had an existing {} HTLC with the same payment hash", log_keysend(is_keysend), log_bytes!(payment_hash.0), log_keysend(!is_keysend));
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));
3693
3688
fail_htlc!(claimable_htlc, payment_hash);
3694
-
};
3689
+
}
3695
3690
let payment_data = payment_data.unwrap();
3696
3691
if inbound_payment.get().payment_secret != payment_data.payment_secret{
3697
3692
log_trace!(self.logger,"Failing new HTLC with payment_hash {} as it didn't match our expected payment secret.", log_bytes!(payment_hash.0));
0 commit comments