From 8a002b07a66124ae373df4c46557ffc02f2444c3 Mon Sep 17 00:00:00 2001 From: bitromortac Date: Fri, 22 Oct 2021 13:02:59 +0200 Subject: [PATCH] add comment for safer forwarding --- electrum/lnpeer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py index 05d280fc0ff9..df328bb6811d 100644 --- a/electrum/lnpeer.py +++ b/electrum/lnpeer.py @@ -1346,6 +1346,8 @@ def maybe_forward_htlc( # - for example; atm we forward first and then persist "forwarding_info", # so if we segfault in-between and restart, we might forward an HTLC twice... # (same for trampoline forwarding) + # - we could check for the exposure to dust HTLCs, see: + # https://github.com/ACINQ/eclair/pull/1985 forwarding_enabled = self.network.config.get('lightning_forward_payments', False) if not forwarding_enabled: self.logger.info(f"forwarding is disabled. failing htlc.")