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