mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 09:28:37 +00:00
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.transactionCountQueue = async.queue(({address}, callback) => {
|
||||||
this.web3.eth.getTransactionCount(address, (err, txCount) => {
|
this.web3.eth.getTransactionCount(address, (err, txCount) => {
|
||||||
if (this.provider.txCache[address] === undefined) {
|
if (this.provider.txCache[address] === undefined) {
|
||||||
this.provider.txCache[address] = 1;
|
this.provider.txCache[address] = this.blockchainConfig.isDev ? 0 : 1;
|
||||||
} else {
|
} else {
|
||||||
this.provider.txCache[address] += 1;
|
this.provider.txCache[address] += 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user