Skip to content

Commit 6f829d3

Browse files
committed
Fix htlc max
1 parent 368c534 commit 6f829d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3167,7 +3167,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
31673167
// Upper bound by capacity. We make it a bit less than full capacity to prevent attempts
31683168
// to use full capacity. This is an effort to reduce routing failures, because in many cases
31693169
// channel might have been used to route very small values (either by honest users or as DoS).
3170-
self.channel_value_satoshis * 9 / 10,
3170+
self.channel_value_satoshis * 1000 * 9 / 10,
31713171

31723172
Channel::<ChanSigner>::get_holder_max_htlc_value_in_flight_msat(self.channel_value_satoshis)
31733173
);

0 commit comments

Comments
 (0)