Przeglądaj źródła

drk: Fix logic bug in scanning loop regarding slot number

parazyd 3 lat temu
rodzic
commit
4f2521cd00
1 zmienionych plików z 1 dodań i 1 usunięć
  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
             }
             }