Skip to content

Commit 6a64dd1

Browse files
committed
Comments (review)
1 parent f94c434 commit 6a64dd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4277,7 +4277,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
42774277
/// The channel value is an input as opposed to using from self, so that this can be used in case of splicing
42784278
/// to checks with new channel value (before being comitted to it).
42794279
#[cfg(splicing)]
4280-
pub fn check_balance_meets_reserve_requirements(&self, balance: u64, channel_value: u64) -> Result<(), ChannelError> {
4280+
pub fn check_balance_meets_v2_reserve_requirements(&self, balance: u64, channel_value: u64) -> Result<(), ChannelError> {
42814281
if balance == 0 {
42824282
return Ok(());
42834283
}
@@ -8581,7 +8581,7 @@ impl<SP: Deref> FundedChannel<SP> where
85818581
let post_balance = PendingSplice::add_checked(self.funding.value_to_self_msat, our_funding_contribution_satoshis);
85828582
// Early check for reserve requirement, assuming maximum balance of full channel value
85838583
// This will also be checked later at tx_complete
8584-
let _res = self.context.check_balance_meets_reserve_requirements(post_balance, post_channel_value)?;
8584+
let _res = self.context.check_balance_meets_v2_reserve_requirements(post_balance, post_channel_value)?;
85858585

85868586
// TODO(splicing): Store msg.funding_pubkey
85878587
// TODO(splicing): Apply start of splice (splice_start)
@@ -8620,7 +8620,7 @@ impl<SP: Deref> FundedChannel<SP> where
86208620
let post_balance = PendingSplice::add_checked(self.funding.value_to_self_msat, our_funding_contribution);
86218621
// Early check for reserve requirement, assuming maximum balance of full channel value
86228622
// This will also be checked later at tx_complete
8623-
let _res = self.context.check_balance_meets_reserve_requirements(post_balance, post_channel_value)?;
8623+
let _res = self.context.check_balance_meets_v2_reserve_requirements(post_balance, post_channel_value)?;
86248624
Ok(())
86258625
}
86268626

0 commit comments

Comments
 (0)