From 5804f11068f8b416271cb1cde5f28a437e58e3a2 Mon Sep 17 00:00:00 2001 From: emizzle Date: Thu, 27 Sep 2018 07:12:49 +1000 Subject: [PATCH] add switch for isDev to determine which nonce to start with --- lib/modules/blockchain_connector/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/blockchain_connector/index.js b/lib/modules/blockchain_connector/index.js index 36e39b83c..ea25d1cda 100644 --- a/lib/modules/blockchain_connector/index.js +++ b/lib/modules/blockchain_connector/index.js @@ -44,7 +44,7 @@ class BlockchainConnector { this.transactionCountQueue = async.queue(({address}, callback) => { this.web3.eth.getTransactionCount(address, (err, txCount) => { if (this.provider.txCache[address] === undefined) { - this.provider.txCache[address] = 1; + this.provider.txCache[address] = this.blockchainConfig.isDev ? 0 : 1; } else { this.provider.txCache[address] += 1; }