Explorar el Código

drk: Fix logic bug in scanning loop regarding slot number

parazyd hace 3 años
padre
commit
4f2521cd00
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/drk/src/rpc_blockchain.rs

+ 1 - 1
bin/drk/src/rpc_blockchain.rs

@@ -326,7 +326,7 @@ impl Drk {
         });
         });
 
 
         while !term_tx.is_closed() {
         while !term_tx.is_closed() {
-            if sl == last {
+            if sl > last {
                 term_tx.close();
                 term_tx.close();
                 break
                 break
             }
             }