Skip to content

Commit 7ccb545

Browse files
committed
Add FundingScope::get_funding_txid helper
1 parent 2388c87 commit 7ccb545

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channel.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,10 @@ impl FundingScope {
17831783
self.channel_transaction_parameters.funding_outpoint
17841784
}
17851785

1786+
pub fn get_funding_txid(&self) -> Option<Txid> {
1787+
self.channel_transaction_parameters.funding_outpoint.map(|txo| txo.txid)
1788+
}
1789+
17861790
fn get_holder_selected_contest_delay(&self) -> u16 {
17871791
self.channel_transaction_parameters.holder_selected_contest_delay
17881792
}

0 commit comments

Comments
 (0)