Skip to content

Commit 038ab21

Browse files
committed
Add FundingScope::get_funding_txid helper
1 parent f51d169 commit 038ab21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,6 +1927,11 @@ impl FundingScope {
19271927
self.channel_transaction_parameters.funding_outpoint
19281928
}
19291929

1930+
#[cfg(splicing)]
1931+
fn get_funding_txid(&self) -> Option<Txid> {
1932+
self.channel_transaction_parameters.funding_outpoint.map(|txo| txo.txid)
1933+
}
1934+
19301935
fn get_holder_selected_contest_delay(&self) -> u16 {
19311936
self.channel_transaction_parameters.holder_selected_contest_delay
19321937
}

0 commit comments

Comments
 (0)