Merge pull request #1844 from valentinewallace/2022-11-htlc-interception-refactor...
[rust-lightning] / lightning / src / ln / channelmanager.rs
index 700f0ec814fc5df42f8a2c3ebd3fa105091f2822..1458d0c50df6147b777a14a30e3247e8b78fb9a5 100644 (file)
@@ -5906,12 +5906,12 @@ where
                });
        }
 
-       fn get_relevant_txids(&self) -> Vec<Txid> {
+       fn get_relevant_txids(&self) -> Vec<(Txid, Option<BlockHash>)> {
                let channel_state = self.channel_state.lock().unwrap();
                let mut res = Vec::with_capacity(channel_state.by_id.len());
                for chan in channel_state.by_id.values() {
-                       if let Some(funding_txo) = chan.get_funding_txo() {
-                               res.push(funding_txo.txid);
+                       if let (Some(funding_txo), block_hash) = (chan.get_funding_txo(), chan.get_funding_tx_confirmed_in()) {
+                               res.push((funding_txo.txid, block_hash));
                        }
                }
                res