1
0

ln update_fee: enforce that feerate is over default min relay fee

(this was always already the case when we are the funder, but we were
not checking it when remote is responsible for update_fee)
This commit is contained in:
SomberNight
2021-09-24 20:13:58 +02:00
parent 4af103378a
commit 1ff9f9910f
5 changed files with 15 additions and 2 deletions

View File

@@ -169,6 +169,9 @@ class ChannelConfig(StoredObject):
raise Exception(
"both to_local and to_remote amounts for the initial commitment "
"transaction are less than or equal to channel_reserve_satoshis")
from .simple_config import FEERATE_PER_KW_MIN_RELAY_LIGHTNING
if initial_feerate_per_kw < FEERATE_PER_KW_MIN_RELAY_LIGHTNING:
raise Exception(f"feerate lower than min relay fee. {initial_feerate_per_kw} sat/kw.")
@attr.s