@@ -4277,7 +4277,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
4277
4277
/// The channel value is an input as opposed to using from self, so that this can be used in case of splicing
4278
4278
/// to checks with new channel value (before being comitted to it).
4279
4279
#[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> {
4281
4281
if balance == 0 {
4282
4282
return Ok(());
4283
4283
}
@@ -8581,7 +8581,7 @@ impl<SP: Deref> FundedChannel<SP> where
8581
8581
let post_balance = PendingSplice::add_checked(self.funding.value_to_self_msat, our_funding_contribution_satoshis);
8582
8582
// Early check for reserve requirement, assuming maximum balance of full channel value
8583
8583
// 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)?;
8585
8585
8586
8586
// TODO(splicing): Store msg.funding_pubkey
8587
8587
// TODO(splicing): Apply start of splice (splice_start)
@@ -8620,7 +8620,7 @@ impl<SP: Deref> FundedChannel<SP> where
8620
8620
let post_balance = PendingSplice::add_checked(self.funding.value_to_self_msat, our_funding_contribution);
8621
8621
// Early check for reserve requirement, assuming maximum balance of full channel value
8622
8622
// 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)?;
8624
8624
Ok(())
8625
8625
}
8626
8626
0 commit comments