mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
src/consensus/task/consensus_sync: missing break added
This commit is contained in:
@@ -37,6 +37,8 @@ pub async fn consensus_sync_task(p2p: P2pPtr, state: ValidatorStatePtr) -> Resul
|
||||
}
|
||||
// Node stores response data.
|
||||
state.write().await.consensus = response.consensus.clone();
|
||||
|
||||
break
|
||||
}
|
||||
} else {
|
||||
warn!("Node is not connected to other nodes, resetting consensus state.");
|
||||
|
||||
Reference in New Issue
Block a user