Merge pull request #1435 from mempool/simon/last-hashrate-indexing-millisecond-check

Last hashrate indexing check needs to be in milliseconds
This commit is contained in:
wiz 2022-03-23 20:34:27 +00:00 committed by GitHub
commit 80a103acab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,7 @@ class Mining {
}
// We only run this once a day
const latestTimestamp = await HashratesRepository.$getLatestRunTimestamp('last_hashrates_indexing');
const latestTimestamp = await HashratesRepository.$getLatestRunTimestamp('last_hashrates_indexing') * 1000;
const now = new Date().getTime();
if (now - latestTimestamp < 86400000) {
return;