Skip to content

Commit b426d1c

Browse files
authored
Merge pull request #604 from embark-framework/bug_fix/syncModepatch
Bug fix/sync modepatch
2 parents 5bb1d33 + da01ab1 commit b426d1c

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
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) {

templates/boilerplate/config/blockchain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
testnet: {
3131
enabled: true,
3232
networkType: "testnet",
33-
light: true,
33+
syncMode: "light",
3434
rpcHost: "localhost",
3535
rpcPort: 8545,
3636
rpcCorsDomain: "http://localhost:8000",
@@ -41,7 +41,7 @@ module.exports = {
4141
livenet: {
4242
enabled: true,
4343
networkType: "livenet",
44-
light: true,
44+
syncMode: "light",
4545
rpcHost: "localhost",
4646
rpcPort: 8545,
4747
rpcCorsDomain: "http://localhost:8000",

templates/demo/config/blockchain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
testnet: {
3131
enabled: true,
3232
networkType: "testnet",
33-
light: true,
33+
syncMode: "light",
3434
rpcHost: "localhost",
3535
rpcPort: 8545,
3636
rpcCorsDomain: "http://localhost:8000",
@@ -41,7 +41,7 @@ module.exports = {
4141
livenet: {
4242
enabled: true,
4343
networkType: "livenet",
44-
light: true,
44+
syncMode: "light",
4545
rpcHost: "localhost",
4646
rpcPort: 8545,
4747
rpcCorsDomain: "http://localhost:8000",

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)