follow-up prev commit; do not return tw-info if forwarding is disabled
This commit is contained in:
@@ -2422,7 +2422,7 @@ class Peer(Logger):
|
|||||||
payment_key = payment_hash + payment_secret
|
payment_key = payment_hash + payment_secret
|
||||||
# trampoline- HTLC we are supposed to forward, but haven't forwarded yet
|
# trampoline- HTLC we are supposed to forward, but haven't forwarded yet
|
||||||
if not self.lnworker.enable_htlc_forwarding:
|
if not self.lnworker.enable_htlc_forwarding:
|
||||||
pass
|
return None, None, None
|
||||||
elif payment_key in self.lnworker.final_onion_forwardings:
|
elif payment_key in self.lnworker.final_onion_forwardings:
|
||||||
# we are already forwarding this payment
|
# we are already forwarding this payment
|
||||||
self.logger.info(f"we are already forwarding this.")
|
self.logger.info(f"we are already forwarding this.")
|
||||||
|
|||||||
Reference in New Issue
Block a user