Skip to content

Commit da01ab1

Browse files
committed
enable using both syncMode and syncmode
1 parent 872501e commit da01ab1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/cmds/blockchain/blockchain.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ var Blockchain = function(options) {
4545
vmdebug: this.blockchainConfig.vmdebug || false,
4646
targetGasLimit: this.blockchainConfig.targetGasLimit || false,
4747
syncMode: this.blockchainConfig.syncMode,
48+
syncmode: this.blockchainConfig.syncmode,
4849
verbosity: this.blockchainConfig.verbosity
4950
};
5051

lib/cmds/blockchain/geth_commands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class GethCommands {
2020
cmd.push(`--datadir=${config.datadir}`);
2121
}
2222

23-
if (config.syncMode) {
24-
cmd.push("--syncmode=" + config.syncMode);
23+
if (config.syncMode || config.syncmode) {
24+
cmd.push("--syncmode=" + (config.syncMode || config.syncmode));
2525
}
2626

2727
if (config.account && config.account.password) {

test/blockchain.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ describe('embark.Blockchain', function () {
3939
wsRPC: true,
4040
targetGasLimit: false,
4141
syncMode: undefined,
42+
syncmode: undefined,
4243
verbosity: undefined,
4344
proxy: true
4445
};
@@ -81,6 +82,7 @@ describe('embark.Blockchain', function () {
8182
wsRPC: true,
8283
targetGasLimit: false,
8384
syncMode: undefined,
85+
syncmode: undefined,
8486
verbosity: undefined,
8587
proxy: true
8688
};

0 commit comments

Comments
 (0)