Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3602 from ethcore/jg-network-id-match
Browse files Browse the repository at this point in the history
Check for network ID for live/test matching
  • Loading branch information
gavofyork committed Nov 25, 2016
2 parents 86522c8 + 6b9b31a commit d0d01ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/src/redux/providers/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,16 +242,19 @@ 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(),
this._api.parity.rpcSettings(),
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,
Expand Down

0 comments on commit d0d01ca

Please sign in to comment.