1
0

follow-up prev commit; do not return tw-info if forwarding is disabled

This commit is contained in:
ThomasV
2023-09-06 10:35:31 +02:00
parent 0e43ef2792
commit 04c2129685

View File

@@ -2422,7 +2422,7 @@ class Peer(Logger):
payment_key = payment_hash + payment_secret
# trampoline- HTLC we are supposed to forward, but haven't forwarded yet
if not self.lnworker.enable_htlc_forwarding:
pass
return None, None, None
elif payment_key in self.lnworker.final_onion_forwardings:
# we are already forwarding this payment
self.logger.info(f"we are already forwarding this.")