only store blocks elsewhere

master
lza_menace 1 month ago
parent cf8705b379
commit 692ac78f0a

@ -154,7 +154,7 @@ class Scrape extends Collection {
txDate: timestamp txDate: timestamp
} }
writeToDatabase(q) writeToDatabase(q)
.then((_) => this.writeLastBlock(tx.blockNumber)) // .then((_) => this.writeLastBlock(tx.blockNumber))
.catch((err) => console.log(`Error writing to database: ${err}`)); .catch((err) => console.log(`Error writing to database: ${err}`));
}); });
} }
@ -301,7 +301,7 @@ class Scrape extends Collection {
}) })
.catch((err) => console.log(`Error posting to Discord: ${err}`)); .catch((err) => console.log(`Error posting to Discord: ${err}`));
} }
this.writeLastBlock(log.blockNumber); // this.writeLastBlock(log.blockNumber);
}) })
.catch((err) => console.log(`Error writing to database: ${err}`)); .catch((err) => console.log(`Error writing to database: ${err}`));
} }

Loading…
Cancel
Save