mirror of https://github.com/embarklabs/embark.git
Update blockchain.js
This commit is contained in:
parent
ce36265c39
commit
4625fd6b5a
|
@ -37,10 +37,12 @@ Blockchain.prototype.generate_basic_command = function() {
|
|||
|
||||
if(config.mine)
|
||||
cmd += "--mine ";
|
||||
|
||||
if (config.genesisBlock !== void 0) {
|
||||
|
||||
if (config.minerthreads !== void 0)
|
||||
cmd += "--minerthreads \"" + config.minerthreads + "\" ";
|
||||
|
||||
if (config.genesisBlock !== void 0)
|
||||
cmd += "--genesis=\"" + config.genesisBlock + "\" ";
|
||||
}
|
||||
|
||||
if (config.whisper) {
|
||||
cmd += "--shh ";
|
||||
|
@ -49,7 +51,6 @@ Blockchain.prototype.generate_basic_command = function() {
|
|||
|
||||
cmd += '--rpcapi "' + rpc_api.join(',') + '" ';
|
||||
|
||||
//TODO: this should be configurable
|
||||
cmd += "--maxpeers " + config.maxPeers + " ";
|
||||
|
||||
if (config.account.password !== void 0) {
|
||||
|
|
Loading…
Reference in New Issue