Make ChainWatchInterface::filter_block return only idxes, not refs
[rust-lightning] / fuzz / src / router.rs
index f388399ab8ab3750e1c63566a89c0e06976f34d3..c79ebb7b4e35712c44ec6083ff0d74375b712fab 100644 (file)
@@ -76,8 +76,8 @@ impl ChainWatchInterface for DummyChainWatcher {
        fn install_watch_tx(&self, _txid: &Txid, _script_pub_key: &Script) { }
        fn install_watch_outpoint(&self, _outpoint: (Txid, u32), _out_script: &Script) { }
        fn watch_all_txn(&self) { }
-       fn filter_block<'a>(&self, _block: &'a Block) -> (Vec<&'a Transaction>, Vec<u32>) {
-               (Vec::new(), Vec::new())
+       fn filter_block(&self, _block: &Block) -> Vec<u32> {
+               Vec::new()
        }
        fn reentered(&self) -> usize { 0 }