mirror of https://github.com/embarklabs/embark.git
Merge pull request #541 from embark-framework/bug_fix/testnet-hang
remove deprecated geth params
This commit is contained in:
commit
5ee9843973
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -38,8 +38,7 @@ describe('embark.Blockchain', function () {
|
||||||
wsPort: 8546,
|
wsPort: 8546,
|
||||||
wsRPC: true,
|
wsRPC: true,
|
||||||
targetGasLimit: false,
|
targetGasLimit: false,
|
||||||
fast: false,
|
syncMode: undefined,
|
||||||
light: false,
|
|
||||||
verbosity: undefined,
|
verbosity: undefined,
|
||||||
proxy: true
|
proxy: true
|
||||||
};
|
};
|
||||||
|
@ -81,8 +80,7 @@ describe('embark.Blockchain', function () {
|
||||||
wsPort: 8546,
|
wsPort: 8546,
|
||||||
wsRPC: true,
|
wsRPC: true,
|
||||||
targetGasLimit: false,
|
targetGasLimit: false,
|
||||||
fast: false,
|
syncMode: undefined,
|
||||||
light: false,
|
|
||||||
verbosity: undefined,
|
verbosity: undefined,
|
||||||
proxy: true
|
proxy: true
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,8 +26,7 @@
|
||||||
"networkType": "testnet",
|
"networkType": "testnet",
|
||||||
"rpcHost": "localhost",
|
"rpcHost": "localhost",
|
||||||
"rpcPort": 8545,
|
"rpcPort": 8545,
|
||||||
"light": true,
|
"syncMode": "fast",
|
||||||
"fast": true,
|
|
||||||
"account": {
|
"account": {
|
||||||
"password": "config/ropsten/password"
|
"password": "config/ropsten/password"
|
||||||
}
|
}
|
||||||
|
@ -36,8 +35,7 @@
|
||||||
"networkType": "rinkeby",
|
"networkType": "rinkeby",
|
||||||
"rpcHost": "localhost",
|
"rpcHost": "localhost",
|
||||||
"rpcPort": 8545,
|
"rpcPort": 8545,
|
||||||
"light": true,
|
"syncMode": "fast",
|
||||||
"fast": true,
|
|
||||||
"account": {
|
"account": {
|
||||||
"password": "config/rinkeby/password"
|
"password": "config/rinkeby/password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,8 +26,7 @@
|
||||||
"networkType": "testnet",
|
"networkType": "testnet",
|
||||||
"rpcHost": "localhost",
|
"rpcHost": "localhost",
|
||||||
"rpcPort": 8545,
|
"rpcPort": 8545,
|
||||||
"light": true,
|
"syncMode": "fast",
|
||||||
"fast": true,
|
|
||||||
"account": {
|
"account": {
|
||||||
"password": "config/ropsten/password"
|
"password": "config/ropsten/password"
|
||||||
}
|
}
|
||||||
|
@ -36,8 +35,7 @@
|
||||||
"networkType": "rinkeby",
|
"networkType": "rinkeby",
|
||||||
"rpcHost": "localhost",
|
"rpcHost": "localhost",
|
||||||
"rpcPort": 8545,
|
"rpcPort": 8545,
|
||||||
"light": true,
|
"syncMode": "fast",
|
||||||
"fast": true,
|
|
||||||
"account": {
|
"account": {
|
||||||
"password": "config/rinkeby/password"
|
"password": "config/rinkeby/password"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue