Skip to content

Commit 44671ae

Browse files
committed
Add FundingScope::get_funding_txid helper
1 parent 7c872ae commit 44671ae

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
@@ -1880,6 +1880,11 @@ impl FundingScope {
18801880
self.channel_transaction_parameters.funding_outpoint
18811881
}
18821882

1883+
#[cfg(splicing)]
1884+
fn get_funding_txid(&self) -> Option<Txid> {
1885+
self.channel_transaction_parameters.funding_outpoint.map(|txo| txo.txid)
1886+
}
1887+
18831888
fn get_holder_selected_contest_delay(&self) -> u16 {
18841889
self.channel_transaction_parameters.holder_selected_contest_delay
18851890
}

0 commit comments

Comments
 (0)