From e2069d2e29f3de986ae76394660cb9136ca15ec5 Mon Sep 17 00:00:00 2001 From: Nicolas Gotchac Date: Fri, 10 Mar 2017 19:40:47 +0100 Subject: [PATCH] Don't check for enode, don't fail if no enode (#4495) (#4861) --- js/src/redux/providers/status.js | 2 +- js/src/secureApi.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/redux/providers/status.js b/js/src/redux/providers/status.js index f671fbabe..dc965893f 100644 --- a/js/src/redux/providers/status.js +++ b/js/src/redux/providers/status.js @@ -284,7 +284,7 @@ export default class Status { this._api.parity.netChain(), this._api.parity.netPort(), this._api.parity.rpcSettings(), - this._api.parity.enode(), + this._api.parity.enode().then((enode) => enode).catch(() => '-'), this._upgradeStore.checkUpgrade() ]) .then(([ diff --git a/js/src/secureApi.js b/js/src/secureApi.js index b36f6efdb..fcd7f5fe2 100644 --- a/js/src/secureApi.js +++ b/js/src/secureApi.js @@ -326,7 +326,7 @@ export default class SecureApi extends Api { * the node is actually ready even when the client * is connected). * - * We check that the `parity_enode` RPC calls + * We check that the `parity_netChain` RPC calls * returns successfully */ _waitUntilNodeReady (_timeleft) { @@ -344,7 +344,7 @@ export default class SecureApi extends Api { const start = Date.now(); return this - .parity.enode() + .parity.netChain() .then(() => true) .catch((error) => { if (!error) {