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/templates/boilerplate/config/blockchain.js b/templates/boilerplate/config/blockchain.js index 322754ee2..af0808fb2 100644 --- a/templates/boilerplate/config/blockchain.js +++ b/templates/boilerplate/config/blockchain.js @@ -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", diff --git a/templates/demo/config/blockchain.js b/templates/demo/config/blockchain.js index 322754ee2..af0808fb2 100644 --- a/templates/demo/config/blockchain.js +++ b/templates/demo/config/blockchain.js @@ -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", 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 };