@@ -4234,7 +4234,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
4234
4234
/// The channel value is an input as opposed to using from self, so that this can be used in case of splicing
4235
4235
/// to checks with new channel value (before being comitted to it).
4236
4236
#[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> {
4238
4238
if balance == 0 {
4239
4239
return Ok(());
4240
4240
}
@@ -8541,7 +8541,7 @@ impl<SP: Deref> FundedChannel<SP> where
8541
8541
let post_balance = PendingSplice::add_checked(self.funding.value_to_self_msat, our_funding_contribution_satoshis);
8542
8542
// Early check for reserve requirement, assuming maximum balance of full channel value
8543
8543
// 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)?;
8545
8545
8546
8546
// TODO(splicing): Store msg.funding_pubkey
8547
8547
// TODO(splicing): Apply start of splice (splice_start)
@@ -8580,7 +8580,7 @@ impl<SP: Deref> FundedChannel<SP> where
8580
8580
let post_balance = PendingSplice::add_checked(self.funding.value_to_self_msat, our_funding_contribution);
8581
8581
// Early check for reserve requirement, assuming maximum balance of full channel value
8582
8582
// 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)?;
8584
8584
Ok(())
8585
8585
}
8586
8586
0 commit comments