fix tests, enable blockchain component by default
This commit is contained in:
parent
d3b0787895
commit
10f7d21f81
|
@ -63,10 +63,10 @@ Config.prototype.reloadConfig = function() {
|
|||
this.loadChainTrackerFile();
|
||||
};
|
||||
|
||||
Config.prototype._mergeConfig = function(configFilePath, defaultConfig, env) {
|
||||
Config.prototype._mergeConfig = function(configFilePath, defaultConfig, env, enabledByDefault) {
|
||||
if (!configFilePath) {
|
||||
let configToReturn = defaultConfig['default'] || {};
|
||||
configToReturn.enabled = false;
|
||||
configToReturn.enabled = enabledByDefault || false;
|
||||
return configToReturn;
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,9 @@ Config.prototype.loadBlockchainConfigFile = function() {
|
|||
}
|
||||
};
|
||||
|
||||
this.blockchainConfig = this._mergeConfig("blockchain.json", configObject, this.env);
|
||||
let configFilePath = this._getFileOrOject(this.configDir, 'blockchain.json', 'blockchain');
|
||||
|
||||
this.blockchainConfig = this._mergeConfig(configFilePath, configObject, this.env, true);
|
||||
};
|
||||
|
||||
Config.prototype.loadContractsConfigFile = function() {
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"buildDir": "build/",
|
||||
"config": {
|
||||
"contracts": "contracts.json",
|
||||
"blockchain": false,
|
||||
"storage": false,
|
||||
"communication": false,
|
||||
"webserver": false
|
||||
|
|
Loading…
Reference in New Issue