diff --git a/lib/cmds/blockchain/blockchain.js b/lib/cmds/blockchain/blockchain.js index a5100def0..87ae481cf 100644 --- a/lib/cmds/blockchain/blockchain.js +++ b/lib/cmds/blockchain/blockchain.js @@ -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 }; diff --git a/lib/cmds/blockchain/geth_commands.js b/lib/cmds/blockchain/geth_commands.js index dd3291d4f..5317286de 100644 --- a/lib/cmds/blockchain/geth_commands.js +++ b/lib/cmds/blockchain/geth_commands.js @@ -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) { diff --git a/test/blockchain.js b/test/blockchain.js index 12bde8542..3f8ba16f5 100644 --- a/test/blockchain.js +++ b/test/blockchain.js @@ -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 };