Show current network hashrate and difficulty even if indexing is in progress

This commit is contained in:
nymkappa committed 2022-05-02 17:39:03 +09:00
1 parent 1f4cf1710a
commit 3972e7b8f0
2 files changed
+4 -11

No files matched your search

+2 -1
View File
@@ -630,7 +630,8 @@ class Routes {
res.json({
hashrates: hashrates,
difficulty: difficulty,
currentHashrate: await bitcoinClient.getNetworkHashPs()
currentHashrate: await bitcoinClient.getNetworkHashPs(),
currentDifficulty: await bitcoinClient.getDifficulty(),
});
} catch (e) {
res.status(500).send(e instanceof Error ? e.message : e);