WIP: Remove ChainWatchedUtil
[rust-lightning] / lightning / src / chain / mod.rs
index 6365aac2dfe2badb83064808ea1c16f62d884ece..620238c26830fe7fc5356928c1c9bead5b8f3dcd 100644 (file)
@@ -93,9 +93,9 @@ pub trait Watch: Send + Sync {
 pub trait Notify: Send + Sync {
        /// Registers interest in a transaction with `txid` and having an output with `script_pubkey` as
        /// a spending condition.
-       fn register_tx(&self, txid: Txid, script_pubkey: Script);
+       fn register_tx(&self, txid: &Txid, script_pubkey: &Script);
 
        /// Registers interest in spends of a transaction output identified by `outpoint` having
        /// `script_pubkey` as the spending condition.
-       fn register_output(&self, outpoint: OutPoint, script_pubkey: Script);
+       fn register_output(&self, outpoint: &OutPoint, script_pubkey: &Script);
 }