ChannelConfig.validate_params: fix sat/msat unit mismatch
follow-up fc39295d20
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user