mirror of https://github.com/embarklabs/embark.git
add switch for isDev to determine which nonce to start with
This commit is contained in:
parent
3fbb08647f
commit
5804f11068
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue