Return confirmation height via `Confirm::get_relevant_txids`
[rust-lightning] / lightning-transaction-sync / tests / integration_tests.rs
index 8a69dce3f3db1d4f7003193e0b039bb4b9d8836d..218d187a441c647d618ca3ced0cc631e8bc7d915 100644 (file)
@@ -143,8 +143,8 @@ impl Confirm for TestConfirmable {
                self.events.lock().unwrap().push(TestConfirmableEvent::BestBlockUpdated(block_hash, height));
        }
 
-       fn get_relevant_txids(&self) -> Vec<(Txid, Option<BlockHash>)> {
-               self.confirmed_txs.lock().unwrap().iter().map(|(&txid, (hash, _))| (txid, Some(*hash))).collect::<Vec<_>>()
+       fn get_relevant_txids(&self) -> Vec<(Txid, u32, Option<BlockHash>)> {
+               self.confirmed_txs.lock().unwrap().iter().map(|(&txid, (hash, height))| (txid, *height, Some(*hash))).collect::<Vec<_>>()
        }
 }