From 3aafd18791772ee4b96bb88e4b114e06e729fccc Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sun, 31 Jul 2022 10:31:32 -0700 Subject: [PATCH] revert --- src/scraper.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/scraper.js b/src/scraper.js index 500f650..9a14c80 100644 --- a/src/scraper.js +++ b/src/scraper.js @@ -106,8 +106,7 @@ class Scrape extends Collection { while (lastScrapedBlock >= latestEthBlock) { latestEthBlock = await this.provider.getBlockNumber(); - const timestamp = await this.getBlockTimestamp(latestEthBlock); - console.log(`[ ${timestamp.toISOString()} ][ ${this.contractName} ] [ waiting ]\n`) + console.log(`[ ${(new Date()).toISOString()} ][ ${this.contractName} ] [ waiting ]\n`) await sleep(120); } } @@ -116,8 +115,7 @@ class Scrape extends Collection { // query historical logs async filterTransfers(startBlock) { let transfers; - const timestamp = await this.getBlockTimestamp(startBlock); - console.log(`[ ${timestamp.toISOString()} ][ ${this.contractName} ][ scraping ] blocks ${startBlock} - ${startBlock + CHUNK_SIZE}\n`); + console.log(`[ ${(new Date()).toISOString()} ][ ${this.contractName} ][ scraping ] blocks ${startBlock} - ${startBlock + CHUNK_SIZE}\n`); if (this.erc1155) { transfers = this.contract.filters.TransferSingle(null, null); } else {