Merge pull request #541 from embark-framework/bug_fix/testnet-hang

remove deprecated geth params
This commit is contained in:
Iuri Matias 2018-06-15 16:46:16 -04:00 committed by GitHub
commit 5ee9843973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 20 deletions

View File

@ -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
};

View File

@ -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) {

View File

@ -38,8 +38,7 @@ describe('embark.Blockchain', function () {
wsPort: 8546,
wsRPC: true,
targetGasLimit: false,
fast: false,
light: false,
syncMode: undefined,
verbosity: undefined,
proxy: true
};
@ -81,8 +80,7 @@ describe('embark.Blockchain', function () {
wsPort: 8546,
wsRPC: true,
targetGasLimit: false,
fast: false,
light: false,
syncMode: undefined,
verbosity: undefined,
proxy: true
};

View File

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

View File

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