Skip to content

Commit ef151a2

Browse files
committed
Comments (review)
1 parent 570102f commit ef151a2

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
@@ -4234,7 +4234,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
42344234
/// The channel value is an input as opposed to using from self, so that this can be used in case of splicing
42354235
/// to checks with new channel value (before being comitted to it).
42364236
#[cfg(splicing)]
4237-
pub fn check_balance_meets_reserve_requirements(&self, balance: u64, channel_value: u64) -> Result<(), ChannelError> {
4237+
pub fn check_balance_meets_v2_reserve_requirements(&self, balance: u64, channel_value: u64) -> Result<(), ChannelError> {
42384238
if balance == 0 {
42394239
return Ok(());
42404240
}
@@ -8541,7 +8541,7 @@ impl<SP: Deref> FundedChannel<SP> where
85418541
let post_balance = PendingSplice::add_checked(self.funding.value_to_self_msat, our_funding_contribution_satoshis);
85428542
// Early check for reserve requirement, assuming maximum balance of full channel value
85438543
// This will also be checked later at tx_complete
8544-
let _res = self.context.check_balance_meets_reserve_requirements(post_balance, post_channel_value)?;
8544+
let _res = self.context.check_balance_meets_v2_reserve_requirements(post_balance, post_channel_value)?;
85458545

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

0 commit comments

Comments
 (0)