Explorar o código

darkfid/task/sync: skip peer on response hash mismatch

lofanator hai 1 semana
pai
achega
72e7cd79a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/darkfid/src/task/sync.rs

+ 1 - 1
bin/darkfid/src/task/sync.rs

@@ -561,7 +561,7 @@ async fn retrieve_blocks(
                 if block.hash() != headers_hashes[i] {
                     debug!(target: "darkfid::task::sync::retrieve_blocks", "Invalid header in `SyncResponse` from peer: {peer:?}");
                     *failed = true;
-                    continue
+                    continue 'peers_loop
                 }
             }