fix blockchain config specs

This commit is contained in:
Iuri Matias 2016-02-09 15:45:48 -05:00
parent 2bbd5f418c
commit 648382bd15
2 changed files with 6 additions and 2 deletions

View File

@ -38,8 +38,7 @@ BlockchainConfig.prototype.config = function(env) {
gasLimit: config.gas_limit || 500000,
gasPrice: config.gas_price || 10000000000000,
rpcWhitelist: config.rpc_whitelist,
nat: config.nat,
mine: config.mine,
nat: config.nat || [],
minerthreads: config.minerthreads,
genesisBlock: config.genesis_block,
datadir: config.datadir,
@ -48,6 +47,7 @@ BlockchainConfig.prototype.config = function(env) {
deployTimeout: config.deploy_timeout || 20,
networkId: networkId,
maxPeers: config.max_peers || 4,
mine: config.mine || false,
port: config.port || "30303",
console_toggle: config.console || false,
mine_when_needed: config.mine_when_needed || false,

View File

@ -69,12 +69,14 @@ describe('embark.config.blockchain', function() {
bootNodes: [],
whisper: false,
minerthreads: 1,
nat: [],
genesisBlock: 'config/genesis.json',
datadir: '/tmp/embark',
chains: 'chains_development.json',
deployTimeout: 45,
networkId: 0,
maxPeers: 4,
mine: false,
port: "30303",
console_toggle: false,
mine_when_needed: true,
@ -118,12 +120,14 @@ describe('embark.config.blockchain', function() {
bootNodes: [],
whisper: false,
minerthreads: 1,
nat: [],
genesisBlock: undefined,
datadir: '/tmp/embark',
chains: undefined,
deployTimeout: 20,
networkId: 0,
maxPeers: 4,
mine: false,
port: "30303",
console_toggle: false,
mine_when_needed: true,