X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Ftest_utils.rs;h=210d62485acf4131d7904a18477b9e82d9d655c2;hb=71230c995c81a6eb09f51239fc9908c854cd90d0;hp=6cdfb7f9d63cb5708f414472189ec23af5ef63ad;hpb=9e14256b71003ed84ae36c6bb8bcab9a1fb60890;p=rust-lightning diff --git a/lightning/src/util/test_utils.rs b/lightning/src/util/test_utils.rs index 6cdfb7f9..210d6248 100644 --- a/lightning/src/util/test_utils.rs +++ b/lightning/src/util/test_utils.rs @@ -423,11 +423,11 @@ impl chain::Access for TestChainSource { } impl chain::Filter for TestChainSource { - fn register_tx(&self, txid: Txid, script_pubkey: Script) { - self.watched_txn.lock().unwrap().insert((txid, script_pubkey)); + fn register_tx(&self, txid: &Txid, script_pubkey: &Script) { + self.watched_txn.lock().unwrap().insert((*txid, script_pubkey.clone())); } - fn register_output(&self, outpoint: OutPoint, script_pubkey: Script) { - self.watched_outputs.lock().unwrap().insert((outpoint, script_pubkey)); + fn register_output(&self, outpoint: &OutPoint, script_pubkey: &Script) { + self.watched_outputs.lock().unwrap().insert((*outpoint, script_pubkey.clone())); } }