Skip to content

Commit df73ab5

Browse files
committed
Comments (review)
1 parent 79a00f5 commit df73ab5

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
@@ -4273,7 +4273,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
42734273
/// The channel value is an input as opposed to using from self, so that this can be used in case of splicing
42744274
/// to checks with new channel value (before being comitted to it).
42754275
#[cfg(splicing)]
4276-
pub fn check_balance_meets_reserve_requirements(&self, balance: u64, channel_value: u64) -> Result<(), ChannelError> {
4276+
pub fn check_balance_meets_v2_reserve_requirements(&self, balance: u64, channel_value: u64) -> Result<(), ChannelError> {
42774277
if balance == 0 {
42784278
return Ok(());
42794279
}
@@ -8576,7 +8576,7 @@ impl<SP: Deref> FundedChannel<SP> where
85768576
let post_balance = PendingSplice::add_checked(self.funding.value_to_self_msat, our_funding_contribution_satoshis);
85778577
// Early check for reserve requirement, assuming maximum balance of full channel value
85788578
// This will also be checked later at tx_complete
8579-
let _res = self.context.check_balance_meets_reserve_requirements(post_balance, post_channel_value)?;
8579+
let _res = self.context.check_balance_meets_v2_reserve_requirements(post_balance, post_channel_value)?;
85808580

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

0 commit comments

Comments
 (0)