fix blockchain config specs
This commit is contained in:
parent
2bbd5f418c
commit
648382bd15
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue