Merge branch 'master' into nymkappa/bugfix/hashrate-native-js-timestamp

This commit is contained in:
nymkappa authored and GitHub committed 2022-03-23 19:10:21 +09:00
commit 56be4e0832
15 files changed
+310 -111

No files matched your search

+8 -1
View File
@@ -1,4 +1,4 @@
import { PoolInfo, PoolStats } from '../mempool.interfaces';
import { PoolInfo, PoolStats, RewardStats } from '../mempool.interfaces';
import BlocksRepository from '../repositories/BlocksRepository';
import PoolsRepository from '../repositories/PoolsRepository';
import HashratesRepository from '../repositories/HashratesRepository';
@@ -70,6 +70,13 @@ class Mining {
};
}
/**
* Get miner reward stats
*/
public async $getRewardStats(blockCount: number): Promise<RewardStats> {
return await BlocksRepository.$getBlockStats(blockCount);
}
/**
* [INDEXING] Generate weekly mining pool hashrate history
*/