mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-23 21:58:48 +00:00
tolerate lack of blockchain config file
This commit is contained in:
parent
747237de76
commit
a76dbb69b9
@ -64,7 +64,10 @@ Config.prototype.reloadConfig = function() {
|
||||
};
|
||||
|
||||
Config.prototype.loadBlockchainConfigFile = function() {
|
||||
var defaultBlockchainConfig = fs.readJSONSync(this.configDir + "blockchain.json");
|
||||
var defaultBlockchainConfig = {};
|
||||
if (fs.existsSync(this.configDir + "blockchain.json")) {
|
||||
defaultBlockchainConfig = fs.readJSONSync(this.configDir + "blockchain.json");
|
||||
}
|
||||
this.blockchainConfig = defaultBlockchainConfig[this.env] || {};
|
||||
|
||||
if (this.blockchainConfig.enabled === undefined) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user