1
0

ChannelConfig.validate_params: fix sat/msat unit mismatch

follow-up fc39295d20
This commit is contained in:
SomberNight
2020-06-09 20:23:52 +02:00
parent d9c5258014
commit 5b4d46299a

View File

@@ -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}")