@@ -222,6 +222,15 @@ pub struct ChannelDetails {
222222 /// state until the splice transaction reaches sufficient confirmations to be locked (and we
223223 /// exchange `splice_locked` messages with our peer).
224224 pub funding_txo : Option < OutPoint > ,
225+ /// The witness script that is used to lock the channel's funding output to commitment transactions.
226+ ///
227+ /// This field will be `None` if we have not negotiated the funding transaction with our
228+ /// counterparty already.
229+ ///
230+ /// When a channel is spliced, this continues to refer to the original pre-splice channel
231+ /// state until the splice transaction reaches sufficient confirmations to be locked (and we
232+ /// exchange `splice_locked` messages with our peer).
233+ pub funding_redeem_script : Option < bitcoin:: ScriptBuf > ,
225234 /// The position of the funding transaction in the chain. None if the funding transaction has
226235 /// not yet been confirmed and the channel fully opened.
227236 ///
@@ -378,6 +387,7 @@ impl From<LdkChannelDetails> for ChannelDetails {
378387 channel_id : value. channel_id ,
379388 counterparty_node_id : value. counterparty . node_id ,
380389 funding_txo : value. funding_txo . map ( |o| o. into_bitcoin_outpoint ( ) ) ,
390+ funding_redeem_script : value. funding_redeem_script ,
381391 short_channel_id : value. short_channel_id ,
382392 outbound_scid_alias : value. outbound_scid_alias ,
383393 inbound_scid_alias : value. inbound_scid_alias ,
0 commit comments