Merge branch 'master' into nymkappa/bugfix/initial-indexing

This commit is contained in:
wiz
2022-05-06 14:55:29 +09:00
committed by GitHub
5 changed files with 9 additions and 15 deletions

View File

@@ -156,6 +156,7 @@ class Bisq {
}
private async loadBisqDumpFile(): Promise<void> {
this.allBlocks = [];
try {
await this.loadData();
this.buildIndex();

View File

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