From 6b9b31ad37468a1edeb8ee229094e3c2861e0e30 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 24 Nov 2016 15:46:25 +0100 Subject: [PATCH] check for network ID for live/test matching --- js/src/redux/providers/status.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/src/redux/providers/status.js b/js/src/redux/providers/status.js index 2153d1ddf..cedf62d89 100644 --- a/js/src/redux/providers/status.js +++ b/js/src/redux/providers/status.js @@ -242,6 +242,7 @@ export default class Status { Promise .all([ this._api.web3.clientVersion(), + this._api.net.version(), this._api.parity.defaultExtraData(), this._api.parity.netChain(), this._api.parity.netPort(), @@ -249,9 +250,11 @@ export default class Status { newConnection ? Promise.resolve(null) : this._api.parity.enode() ]) .then(([ - clientVersion, defaultExtraData, netChain, netPort, rpcSettings, enode + clientVersion, netVersion, defaultExtraData, netChain, netPort, rpcSettings, enode ]) => { - const isTest = netChain === 'morden' || netChain === 'ropsten' || netChain === 'testnet'; + const isTest = + netVersion === '2' || // morden + netVersion === '3'; // ropsten const longStatus = { clientVersion,