Skip to content

Commit

Permalink
add comment for safer forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
bitromortac committed Oct 22, 2021
1 parent b339279 commit c9b3185
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions electrum/lnpeer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,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.")
Expand Down

0 comments on commit c9b3185

Please sign in to comment.