Merge pull request #604 from embark-framework/bug_fix/syncModepatch

Bug fix/sync modepatch
This commit is contained in:
Jonathan Rainville 2018-07-06 10:46:52 -04:00 committed by GitHub
commit b426d1c6d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 6 deletions

View File

@ -45,6 +45,7 @@ var Blockchain = function(options) {
vmdebug: this.blockchainConfig.vmdebug || false,
targetGasLimit: this.blockchainConfig.targetGasLimit || false,
syncMode: this.blockchainConfig.syncMode,
syncmode: this.blockchainConfig.syncmode,
verbosity: this.blockchainConfig.verbosity
};

View File

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

View File

@ -30,7 +30,7 @@ module.exports = {
testnet: {
enabled: true,
networkType: "testnet",
light: true,
syncMode: "light",
rpcHost: "localhost",
rpcPort: 8545,
rpcCorsDomain: "http://localhost:8000",
@ -41,7 +41,7 @@ module.exports = {
livenet: {
enabled: true,
networkType: "livenet",
light: true,
syncMode: "light",
rpcHost: "localhost",
rpcPort: 8545,
rpcCorsDomain: "http://localhost:8000",

View File

@ -30,7 +30,7 @@ module.exports = {
testnet: {
enabled: true,
networkType: "testnet",
light: true,
syncMode: "light",
rpcHost: "localhost",
rpcPort: 8545,
rpcCorsDomain: "http://localhost:8000",
@ -41,7 +41,7 @@ module.exports = {
livenet: {
enabled: true,
networkType: "livenet",
light: true,
syncMode: "light",
rpcHost: "localhost",
rpcPort: 8545,
rpcCorsDomain: "http://localhost:8000",

View File

@ -39,6 +39,7 @@ describe('embark.Blockchain', function () {
wsRPC: true,
targetGasLimit: false,
syncMode: undefined,
syncmode: undefined,
verbosity: undefined,
proxy: true
};
@ -81,6 +82,7 @@ describe('embark.Blockchain', function () {
wsRPC: true,
targetGasLimit: false,
syncMode: undefined,
syncmode: undefined,
verbosity: undefined,
proxy: true
};