Skip to content

Commit be56077

Browse files
committed
f - populate SpliceFailed inputs and outputs
1 parent 49bba4a commit be56077

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11947,6 +11947,7 @@ where
1194711947
user_channel_id: self.context.user_id,
1194811948
funding_txo: None,
1194911949
channel_type: None,
11950+
// FIXME: Populate these from funding_negotiation_context?
1195011951
contributed_inputs: Vec::new(),
1195111952
contributed_outputs: Vec::new(),
1195211953
};
@@ -11987,12 +11988,12 @@ where
1198711988
user_channel_id: self.context.user_id,
1198811989
funding_txo: splice_funding.get_funding_txo().map(|txo| txo.into_bitcoin_outpoint()),
1198911990
channel_type: Some(splice_funding.get_channel_type().clone()),
11990-
contributed_inputs: Vec::new(),
11991-
contributed_outputs: Vec::new(),
11991+
contributed_inputs: err.contributed_inputs,
11992+
contributed_outputs: err.contributed_outputs,
1199211993
};
1199311994
let channel_error = ChannelError::WarnAndDisconnect(format!(
1199411995
"Failed to start interactive transaction construction, {:?}",
11995-
err
11996+
err.reason
1199611997
));
1199711998
(channel_error, splice_failed)
1199811999
})?;

0 commit comments

Comments
 (0)