@@ -1739,7 +1739,7 @@ where
1739
1739
ChannelPhase::UnfundedV2(chan) => Ok(chan.as_negotiating_channel()),
1740
1740
#[cfg(splicing)]
1741
1741
ChannelPhase::Funded(chan) => {
1742
- Ok( chan.as_renegotiating_channel().map_err(|err| ChannelError::Warn(err.into()))? )
1742
+ chan.as_renegotiating_channel().map_err(|err| ChannelError::Warn(err.into()))
1743
1743
},
1744
1744
_ => Err(ChannelError::Warn(
1745
1745
"Got a transaction negotiation message in an invalid phase".to_owned(),
@@ -1787,9 +1787,7 @@ where
1787
1787
{
1788
1788
let logger = WithChannelContext::from(logger, self.context(), None);
1789
1789
let mut negotiating_channel = self.as_negotiating_channel()?;
1790
- let (commitment_signed, event) =
1791
- negotiating_channel.funding_tx_constructed(signing_session, &&logger)?;
1792
- Ok((commitment_signed, event))
1790
+ negotiating_channel.funding_tx_constructed(signing_session, &&logger)
1793
1791
}
1794
1792
1795
1793
pub fn force_shutdown(&mut self, closure_reason: ClosureReason) -> ShutdownResult {
@@ -2219,11 +2217,9 @@ impl FundingScope {
2219
2217
channel_type_features: channel_parameters.channel_type_features.clone(),
2220
2218
channel_value_satoshis: post_channel_value,
2221
2219
};
2222
- if let Some(ref mut counterparty_parameters) =
2223
- post_channel_transaction_parameters.counterparty_parameters
2224
- {
2225
- counterparty_parameters.pubkeys.funding_pubkey = counterparty_funding_pubkey;
2226
- }
2220
+ post_channel_transaction_parameters.counterparty_parameters.as_mut()
2221
+ .expect("Expecting counterparty_parameters to be set on post_channel_transaction_parameters in FundingScope::for_splice()")
2222
+ .pubkeys.funding_pubkey = counterparty_funding_pubkey;
2227
2223
2228
2224
// New reserve values are based on the new channel value, and v2-specific
2229
2225
let counterparty_selected_channel_reserve_satoshis = Some(get_v2_channel_reserve_satoshis(
0 commit comments