Browse Source

ChannelConfig.validate_params: fix sat/msat unit mismatch

follow-up fc39295d20
bip39-recovery
SomberNight 5 years ago
parent
commit
5b4d46299a
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/lnutil.py

2
electrum/lnutil.py

@ -107,7 +107,7 @@ class Config(StoredObject):
raise Exception(f"max_accepted_htlcs too high: {self.max_accepted_htlcs}")
if self.to_self_delay > MAXIMUM_REMOTE_TO_SELF_DELAY_ACCEPTED:
raise Exception(f"to_self_delay too high: {self.to_self_delay} > {MAXIMUM_REMOTE_TO_SELF_DELAY_ACCEPTED}")
if self.max_htlc_value_in_flight_msat < min(funding_sat, 100_000_000):
if self.max_htlc_value_in_flight_msat < min(1000 * funding_sat, 100_000_000):
raise Exception(f"max_htlc_value_in_flight_msat is too small: {self.max_htlc_value_in_flight_msat}")

Loading…
Cancel
Save