mirror of
https://github.com/mempool/mempool.git
synced 2026-08-18 13:08:44 +02:00
Last hashrate indexing check needs to be in milliseconds
This commit is contained in:
parent
46405438d3
commit
dcaa7fc4e8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue