@@ -1719,7 +1719,7 @@ where
1719
1719
L::Target: Logger,
1720
1720
{
1721
1721
let logger = WithChannelContext::from(logger, &self.context(), None);
1722
- let NegotiationError { reason, .. } = error;
1722
+ let NegotiationError { reason, contributed_inputs, contributed_outputs } = error;
1723
1723
log_info!(logger, "Failed interactive transaction negotiation: {reason}");
1724
1724
1725
1725
let splice_funding_failed = match &mut self.phase {
@@ -1736,15 +1736,23 @@ where
1736
1736
.and_then(|pending_splice| pending_splice.funding_negotiation.take())
1737
1737
.filter(|funding_negotiation| funding_negotiation.is_initiator())
1738
1738
.map(|funding_negotiation| {
1739
- let funding = funding_negotiation.as_funding();
1739
+ let funding_txo = funding_negotiation
1740
+ .as_funding()
1741
+ .and_then(|funding| funding.get_funding_txo())
1742
+ .map(|txo| txo.into_bitcoin_outpoint());
1743
+
1744
+ let channel_type = funding_negotiation
1745
+ .as_funding()
1746
+ .map(|funding| funding.get_channel_type().clone());
1747
+
1740
1748
SpliceFundingFailed {
1741
1749
channel_id: funded_channel.context.channel_id,
1742
1750
counterparty_node_id: funded_channel.context.counterparty_node_id,
1743
1751
user_channel_id: funded_channel.context.user_id,
1744
- funding_txo: funding.as_ref().and_then(|funding| funding.get_funding_txo()).map(|txo| txo.into_bitcoin_outpoint()) ,
1745
- channel_type: funding.as_ref().map(|funding| funding.get_channel_type().clone()) ,
1746
- contributed_inputs: Vec::new() ,
1747
- contributed_outputs: Vec::new() ,
1752
+ funding_txo,
1753
+ channel_type,
1754
+ contributed_inputs,
1755
+ contributed_outputs,
1748
1756
}
1749
1757
})
1750
1758
},
0 commit comments