From 166639051bb767429d21c99d709de7d724deb240 Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Wed, 2 Jun 2021 18:13:43 +0300 Subject: [PATCH] fix: wait nodes to be ready (#369) --- src/listr/tasks/platform/waitForNodeToBeReadyTaskFactory.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/listr/tasks/platform/waitForNodeToBeReadyTaskFactory.js b/src/listr/tasks/platform/waitForNodeToBeReadyTaskFactory.js index b795ce52..93073d9d 100644 --- a/src/listr/tasks/platform/waitForNodeToBeReadyTaskFactory.js +++ b/src/listr/tasks/platform/waitForNodeToBeReadyTaskFactory.js @@ -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); },