mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-17 01:37:26 +00:00
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)
|
if(config.mine)
|
||||||
cmd += "--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 + "\" ";
|
cmd += "--genesis=\"" + config.genesisBlock + "\" ";
|
||||||
}
|
|
||||||
|
|
||||||
if (config.whisper) {
|
if (config.whisper) {
|
||||||
cmd += "--shh ";
|
cmd += "--shh ";
|
||||||
@ -49,7 +51,6 @@ Blockchain.prototype.generate_basic_command = function() {
|
|||||||
|
|
||||||
cmd += '--rpcapi "' + rpc_api.join(',') + '" ';
|
cmd += '--rpcapi "' + rpc_api.join(',') + '" ';
|
||||||
|
|
||||||
//TODO: this should be configurable
|
|
||||||
cmd += "--maxpeers " + config.maxPeers + " ";
|
cmd += "--maxpeers " + config.maxPeers + " ";
|
||||||
|
|
||||||
if (config.account.password !== void 0) {
|
if (config.account.password !== void 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user