From fdd2d10d3802339abebf9b68e3adc401b059ef86 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 28 Aug 2018 09:32:39 +0100 Subject: [PATCH] Add warning --- lib/core/config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/core/config.js b/lib/core/config.js index 13372037..6eafa54e 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -187,6 +187,12 @@ Config.prototype.loadBlockchainConfigFile = function() { if (!configFilePath) { this.blockchainConfig.default = true; } + if(!this.blockchainConfig.account && !this.blockchainConfig.isDev) { + this.logger.warn( + __('Account settings are needed for this chain.' + + ' Please put a valid address and possibly a password in your blockchain config or use a dev chain.') + ); + } }; Config.prototype.loadContractsConfigFile = function() {