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 4dda5c3 commit 396948eCopy full SHA for 396948e
lightning/src/ln/channel.rs
@@ -10680,10 +10680,9 @@ where
10680
if our_funding_contribution < SignedAmount::ZERO {
10681
// TODO(splicing): Check that channel balance does not go below the channel reserve
10682
let post_channel_value = AddSigned::checked_add_signed(
10683
- self.funding.get_value_satoshis(),
+ self.funding.get_value_to_self_msat() / 1000,
10684
our_funding_contribution.to_sat(),
10685
);
10686
- // FIXME: Should we check value_to_self instead? Do HTLCs need to be accounted for?
10687
// FIXME: Check that we can pay for the outputs from the channel value?
10688
if post_channel_value.is_none() {
10689
return Err(APIError::APIMisuseError {
0 commit comments