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 27, 2021
1 parent ccd3bf9 commit 8a002b0
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 @@ -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.")
Expand Down

0 comments on commit 8a002b0

Please sign in to comment.