hotfix network id comparison string vs number

This commit is contained in:
Jonathan Rainville 2018-08-07 15:04:58 -04:00
parent 00bb7a0de0
commit 84264b2087

View File

@ -71,7 +71,7 @@ class BlockchainConnector {
if (!networkId && constants.blockchain.networkIds[self.blockchainConfig.networkType]) {
networkId = constants.blockchain.networkIds[self.blockchainConfig.networkType];
}
if (id !== networkId) {
if (id.toString() !== networkId.toString()) {
self.logger.warn(__('Connected to a blockchain node on network {{realId}} while your config specifies {{configId}}', {realId: id, configId: networkId}));
self.logger.warn(__('Make sure you started the right blockchain node'));
}