enable syncMode

This commit is contained in:
Jonathan Rainville 2018-06-15 16:33:59 -04:00
parent 26447c9362
commit d77083ee8c
4 changed files with 7 additions and 8 deletions

View File

@ -44,8 +44,7 @@ var Blockchain = function(options) {
wsApi: (this.blockchainConfig.wsApi || ['eth', 'web3', 'net', 'shh']), wsApi: (this.blockchainConfig.wsApi || ['eth', 'web3', 'net', 'shh']),
vmdebug: this.blockchainConfig.vmdebug || false, vmdebug: this.blockchainConfig.vmdebug || false,
targetGasLimit: this.blockchainConfig.targetGasLimit || false, targetGasLimit: this.blockchainConfig.targetGasLimit || false,
light: this.blockchainConfig.light || false, syncMode: this.blockchainConfig.syncMode,
fast: this.blockchainConfig.fast || false,
verbosity: this.blockchainConfig.verbosity verbosity: this.blockchainConfig.verbosity
}; };

View File

@ -20,12 +20,8 @@ class GethCommands {
cmd.push(`--datadir=${config.datadir}`); cmd.push(`--datadir=${config.datadir}`);
} }
if (config.light) { if (config.syncMode) {
cmd.push("--light"); cmd.push("--syncmode=" + config.syncMode);
}
if (config.fast) {
cmd.push("--fast");
} }
if (config.account && config.account.password) { if (config.account && config.account.password) {

View File

@ -26,6 +26,7 @@
"networkType": "testnet", "networkType": "testnet",
"rpcHost": "localhost", "rpcHost": "localhost",
"rpcPort": 8545, "rpcPort": 8545,
"syncMode": "fast",
"account": { "account": {
"password": "config/ropsten/password" "password": "config/ropsten/password"
} }
@ -34,6 +35,7 @@
"networkType": "rinkeby", "networkType": "rinkeby",
"rpcHost": "localhost", "rpcHost": "localhost",
"rpcPort": 8545, "rpcPort": 8545,
"syncMode": "fast",
"account": { "account": {
"password": "config/rinkeby/password" "password": "config/rinkeby/password"
} }

View File

@ -26,6 +26,7 @@
"networkType": "testnet", "networkType": "testnet",
"rpcHost": "localhost", "rpcHost": "localhost",
"rpcPort": 8545, "rpcPort": 8545,
"syncMode": "fast",
"account": { "account": {
"password": "config/ropsten/password" "password": "config/ropsten/password"
} }
@ -34,6 +35,7 @@
"networkType": "rinkeby", "networkType": "rinkeby",
"rpcHost": "localhost", "rpcHost": "localhost",
"rpcPort": 8545, "rpcPort": 8545,
"syncMode": "fast",
"account": { "account": {
"password": "config/rinkeby/password" "password": "config/rinkeby/password"
} }