فهرست منبع

consensus/task/consensus_sync: removed redundant check

aggstam 3 سال پیش
والد
کامیت
90f3a0fea7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/consensus/task/consensus_sync.rs

+ 1 - 1
src/consensus/task/consensus_sync.rs

@@ -113,7 +113,7 @@ pub async fn consensus_sync_task(p2p: P2pPtr, state: ValidatorStatePtr) -> Resul
     let mut response = response_sub.receive().await?;
     // Verify that peer has finished finalizing forks
     loop {
-        if response.forks.len() != 1 || response.forks[0].sequence.len() != 1 {
+        if response.forks.len() != 1 {
             warn!(target: "consensus::consensus_sync", "Peer has not finished finalization, retrying...");
             sleep(1).await;
             peer.send(ConsensusRequest {}).await?;