Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
fix: wait nodes to be ready (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov authored Jun 2, 2021
1 parent 5798398 commit 1666390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/listr/tasks/platform/waitForNodeToBeReadyTaskFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ function waitForNodeToBeReadyTaskFactory(
const response = await tenderdashRpcClient.request('status', {}).catch(() => {});

if (response) {
success = !response.error;
success = !response.result.sync_info.catching_up;
}

if (!success) {
await wait(2000);
await wait(500);
}
} while (!success);
},
Expand Down

0 comments on commit 1666390

Please sign in to comment.