tChannelConfig.validate_params: fix sat/msat unit mismatch - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit 5b4d46299a712fbcd2e736986616a88f78887f97 (DIR) parent d9c525801420d07b3597295bfb43003ff92811bd (HTM) Author: SomberNight <somber.night@protonmail.com> Date: Tue, 9 Jun 2020 20:23:52 +0200 ChannelConfig.validate_params: fix sat/msat unit mismatch follow-up fc39295d20ee0ad90a944efb63369459a9cd9a19 Diffstat: M electrum/lnutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/electrum/lnutil.py b/electrum/lnutil.py t@@ -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}")