fix syncmode

This commit is contained in:
Jonathan Rainville 2018-06-29 16:42:01 -04:00
parent 62c6b57f45
commit 962a9c5b11
2 changed files with 3 additions and 2 deletions

View File

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

View File

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