add switch for isDev to determine which nonce to start with

This commit is contained in:
emizzle 2018-09-27 07:12:49 +10:00
parent 3fbb08647f
commit 5804f11068
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}