[mining] use getNetworkHashPs(1008)

This commit is contained in:
nymkappa committed 2024-10-14 17:03:52 +09:00
1 parent 8dac5cff9a
commit 1c4be164dd
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -183,7 +183,7 @@ class MiningRoutes {
private async $getHistoricalHashrate(req: Request, res: Response) {
let currentHashrate = 0, currentDifficulty = 0;
try {
currentHashrate = await bitcoinClient.getNetworkHashPs();
currentHashrate = await bitcoinClient.getNetworkHashPs(1008);
currentDifficulty = await bitcoinClient.getDifficulty();
} catch (e) {
logger.debug('Bitcoin Core is not available, using zeroed value for current hashrate and difficulty');