Add warning

This commit is contained in:
Anthony Laibe 2018-08-28 09:32:39 +01:00
parent 23f7ec396a
commit fdd2d10d38
1 changed files with 6 additions and 0 deletions

View File

@ -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() {