mirror of https://github.com/embarklabs/embark.git
enable syncMode
This commit is contained in:
parent
26447c9362
commit
d77083ee8c
|
@ -44,8 +44,7 @@ var Blockchain = function(options) {
|
|||
wsApi: (this.blockchainConfig.wsApi || ['eth', 'web3', 'net', 'shh']),
|
||||
vmdebug: this.blockchainConfig.vmdebug || false,
|
||||
targetGasLimit: this.blockchainConfig.targetGasLimit || false,
|
||||
light: this.blockchainConfig.light || false,
|
||||
fast: this.blockchainConfig.fast || false,
|
||||
syncMode: this.blockchainConfig.syncMode,
|
||||
verbosity: this.blockchainConfig.verbosity
|
||||
};
|
||||
|
||||
|
|
|
@ -20,12 +20,8 @@ class GethCommands {
|
|||
cmd.push(`--datadir=${config.datadir}`);
|
||||
}
|
||||
|
||||
if (config.light) {
|
||||
cmd.push("--light");
|
||||
}
|
||||
|
||||
if (config.fast) {
|
||||
cmd.push("--fast");
|
||||
if (config.syncMode) {
|
||||
cmd.push("--syncmode=" + config.syncMode);
|
||||
}
|
||||
|
||||
if (config.account && config.account.password) {
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"networkType": "testnet",
|
||||
"rpcHost": "localhost",
|
||||
"rpcPort": 8545,
|
||||
"syncMode": "fast",
|
||||
"account": {
|
||||
"password": "config/ropsten/password"
|
||||
}
|
||||
|
@ -34,6 +35,7 @@
|
|||
"networkType": "rinkeby",
|
||||
"rpcHost": "localhost",
|
||||
"rpcPort": 8545,
|
||||
"syncMode": "fast",
|
||||
"account": {
|
||||
"password": "config/rinkeby/password"
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"networkType": "testnet",
|
||||
"rpcHost": "localhost",
|
||||
"rpcPort": 8545,
|
||||
"syncMode": "fast",
|
||||
"account": {
|
||||
"password": "config/ropsten/password"
|
||||
}
|
||||
|
@ -34,6 +35,7 @@
|
|||
"networkType": "rinkeby",
|
||||
"rpcHost": "localhost",
|
||||
"rpcPort": 8545,
|
||||
"syncMode": "fast",
|
||||
"account": {
|
||||
"password": "config/rinkeby/password"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue