add support for light and fast options; add default pass folders

This commit is contained in:
Iuri Matias 2017-02-20 15:53:55 -05:00
parent e4bcdf7f12
commit 1a436dcc12
6 changed files with 25 additions and 3 deletions

View File

@ -15,11 +15,17 @@
},
"testnet": {
"networkType": "testnet",
"light": true,
"rpcHost": "localhost",
"rpcPort": 8545
"rpcPort": 8545,
"rpcCorsDomain": "http://localhost:8000",
"account": {
"password": "config/testnet/password"
}
},
"livenet": {
"networkType": "livenet",
"light": true,
"rpcHost": "localhost",
"rpcPort": 8545,
"rpcCorsDomain": "http://localhost:8000",

View File

@ -1 +0,0 @@
prod_password

View File

@ -0,0 +1 @@
test_password

View File

@ -15,11 +15,17 @@
},
"testnet": {
"networkType": "testnet",
"light": true,
"rpcHost": "localhost",
"rpcPort": 8545
"rpcPort": 8545,
"rpcCorsDomain": "http://localhost:8000",
"account": {
"password": "config/testnet/password"
}
},
"livenet": {
"networkType": "livenet",
"light": true,
"rpcHost": "localhost",
"rpcPort": 8545,
"rpcCorsDomain": "http://localhost:8000",
@ -31,6 +37,7 @@
"networkType": "custom",
"rpcHost": "localhost",
"rpcPort": 8545,
"rpcCorsDomain": "http://localhost:8000",
"datadir": "yourdatadir",
"networkId": "123",
"bootnodes": ""

View File

@ -0,0 +1 @@
test_password

View File

@ -21,6 +21,14 @@ GethCommands.prototype.commonOptions = function() {
cmd += "--datadir=\"" + config.datadir + "\" ";
}
if (config.light) {
cmd += "--light ";
}
if (config.fast) {
cmd += "--fast ";
}
if (config.account && config.account.password) {
cmd += "--password " + config.account.password + " ";
}