enable using both syncMode and syncmode
This commit is contained in:
parent
872501e94e
commit
da01ab15db
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue