Skip to content

Commit 07f87c6

Browse files
committed
f - only emit SpliceFailed when initiator
1 parent f40f597 commit 07f87c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6853,6 +6853,7 @@ where
68536853
// Capture splice funding failed information if we have an active splice negotiation
68546854
let splice_funding_failed = self.pending_splice.as_mut()
68556855
.and_then(|pending_splice| pending_splice.funding_negotiation.take())
6856+
.filter(|funding_negotiation| funding_negotiation.is_initiator())
68566857
.map(|funding_negotiation| {
68576858
// Create SpliceFundingFailed for any active splice negotiation during shutdown
68586859
let (funding_txo, channel_type) = match &funding_negotiation {
@@ -6862,7 +6863,7 @@ where
68626863
FundingNegotiation::ConstructingTransaction { funding, .. } => {
68636864
(funding.get_funding_txo().map(|txo| txo.into_bitcoin_outpoint()), Some(funding.get_channel_type().clone()))
68646865
},
6865-
FundingNegotiation::AwaitingSignatures { funding } => {
6866+
FundingNegotiation::AwaitingSignatures { funding, .. } => {
68666867
(funding.get_funding_txo().map(|txo| txo.into_bitcoin_outpoint()), Some(funding.get_channel_type().clone()))
68676868
},
68686869
};

0 commit comments

Comments
 (0)