mirror of
https://github.com/tornadocash/tornado-relayer
synced 2024-02-02 15:04:06 +01:00
log nonce
This commit is contained in:
parent
359ef927ab
commit
493f66c009
@ -66,6 +66,7 @@ class Fetcher {
|
|||||||
async fetchNonce() {
|
async fetchNonce() {
|
||||||
try {
|
try {
|
||||||
config.nonce = await this.web3.eth.getTransactionCount(this.web3.eth.defaultAccount)
|
config.nonce = await this.web3.eth.getTransactionCount(this.web3.eth.defaultAccount)
|
||||||
|
console.log(`Current nonce: ${config.nonce}%`)
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.error('fetchNonce failed', e.message)
|
console.error('fetchNonce failed', e.message)
|
||||||
setTimeout(this.fetchNonce, 3000)
|
setTimeout(this.fetchNonce, 3000)
|
||||||
|
Loading…
Reference in New Issue
Block a user