We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a37d873 commit beff815Copy full SHA for beff815
lightning/src/ln/channel.rs
@@ -10674,10 +10674,9 @@ where
10674
if our_funding_contribution < SignedAmount::ZERO {
10675
// TODO(splicing): Check that channel balance does not go below the channel reserve
10676
let post_channel_value = AddSigned::checked_add_signed(
10677
- self.funding.get_value_satoshis(),
+ self.funding.get_value_to_self_msat() / 1000,
10678
our_funding_contribution.to_sat(),
10679
);
10680
- // FIXME: Should we check value_to_self instead? Do HTLCs need to be accounted for?
10681
// FIXME: Check that we can pay for the outputs from the channel value?
10682
if post_channel_value.is_none() {
10683
return Err(APIError::APIMisuseError {
0 commit comments