Просмотр исходного кода

Let request continue without unsubscribe

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

+ 2 - 3
src/service/btc.rs

@@ -235,7 +235,8 @@ impl BtcClient {
                 Some(_) => {
                 Some(_) => {
                     // Script has a notification update
                     // Script has a notification update
                     debug!(target: "BTC BRIDGE", "ScripPubKey notify update");
                     debug!(target: "BTC BRIDGE", "ScripPubKey notify update");
-                    let _ = client.script_unsubscribe(&script)?;
+                    //TODO: unsubscribe is never successful
+                    //let _ = client.script_unsubscribe(&script)?;
                     break;
                     break;
                 }
                 }
                 None => {
                 None => {
@@ -246,8 +247,6 @@ impl BtcClient {
             };
             };
         } // Endloop
         } // Endloop
 
 
-        //let _ = client.script_unsubscribe(&script)?;
-
         cur_balance = client.script_get_balance(&script)?;
         cur_balance = client.script_get_balance(&script)?;
 
 
         let send_notification = self.notify_channel.0.clone();
         let send_notification = self.notify_channel.0.clone();