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

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

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);