From: Gleb Naumenko Date: Mon, 28 Sep 2020 13:29:55 +0000 (+0300) Subject: Fix htlc max X-Git-Tag: v0.0.13~11^2~4 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=6f829d337cf16fec722d0ae70767033d98929c60;p=rust-lightning Fix htlc max --- diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index abf2834c2..3c8be717f 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -3167,7 +3167,7 @@ impl Channel { // Upper bound by capacity. We make it a bit less than full capacity to prevent attempts // to use full capacity. This is an effort to reduce routing failures, because in many cases // channel might have been used to route very small values (either by honest users or as DoS). - self.channel_value_satoshis * 9 / 10, + self.channel_value_satoshis * 1000 * 9 / 10, Channel::::get_holder_max_htlc_value_in_flight_msat(self.channel_value_satoshis) );