From 962a9c5b110e848696e578f21e3529362e0029a4 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 29 Jun 2018 16:42:01 -0400 Subject: [PATCH] fix syncmode --- lib/cmds/blockchain/blockchain.js | 1 + lib/cmds/blockchain/geth_commands.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cmds/blockchain/blockchain.js b/lib/cmds/blockchain/blockchain.js index 7d4d244a5..d19048750 100644 --- a/lib/cmds/blockchain/blockchain.js +++ b/lib/cmds/blockchain/blockchain.js @@ -46,6 +46,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 1a785751e..7a12ea05c 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) {