]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix htlc max
authorGleb Naumenko <naumenko.gs@gmail.com>
Mon, 28 Sep 2020 13:29:55 +0000 (16:29 +0300)
committerGleb Naumenko <naumenko.gs@gmail.com>
Thu, 24 Dec 2020 11:04:48 +0000 (13:04 +0200)
lightning/src/ln/channel.rs

index abf2834c26a93d6b020ea095959014c08c963642..3c8be717f3237edc56297d559c806bdb96d80780 100644 (file)
@@ -3167,7 +3167,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
                        // 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::<ChanSigner>::get_holder_max_htlc_value_in_flight_msat(self.channel_value_satoshis)
                );