Add difficulty adjustment in mining page + Fix pools table on mobile

This commit is contained in:
nymkappa committed 2022-01-28 14:52:12 +09:00
1 parent 091027cc79
commit b9a047b22d
9 files changed
+63 -20

No files matched your search

+2 -1
View File
@@ -17,7 +17,8 @@ class Mining {
public async $getPoolsStats(interval: string = "100 YEAR") : Promise<object> {
let poolsStatistics = {};
const lastBlockHashrate = await this.bitcoinApi.$getEstimatedHashrate(717960);
const blockHeightTip = await this.bitcoinApi.$getBlockHeightTip();
const lastBlockHashrate = await this.bitcoinApi.$getEstimatedHashrate(blockHeightTip);
const poolsInfo: PoolInfo[] = await PoolsRepository.$getPoolsInfo(interval);
const blockCount: number = await BlocksRepository.$blockCount(interval);
const emptyBlocks: EmptyBlocks[] = await BlocksRepository.$countEmptyBlocks(interval);