Janus 4 лет назад
Родитель
Сommit
ab9e6657fa
1 измененных файлов с 0 добавлено и 16 удалено
  1. 0 16
      src/service/btc.rs

+ 0 - 16
src/service/btc.rs

@@ -358,7 +358,6 @@ impl BtcClient {
 
     async fn handle_subscribe_request(
         self: Arc<Self>,
-        //tx: impl Watchable + Send + 'static,
         btc_keys: Account,
         drk_pub_key: jubjub::SubgroupPoint,
     ) -> BtcResult<()> {
@@ -771,21 +770,6 @@ impl fmt::Display for ScriptStatus {
         }
     }
 }
-
-pub trait Watchable {
-    fn id(&self) -> Txid;
-    fn script(&self) -> Script;
-}
-
-impl Watchable for (Txid, Script) {
-    fn id(&self) -> Txid {
-        self.0
-    }
-
-    fn script(&self) -> Script {
-        self.1.clone()
-    }
-}
 impl Encodable for bitcoin::Transaction {
     fn encode<S: std::io::Write>(&self, s: S) -> Result<usize> {
         let tx = self.serialize();