Merge pull request #4736 from mempool/mononaut/accelerator-audit-stats

Show accelerator audit total on block page
This commit is contained in:
wiz
2024-03-09 13:52:39 +09:00
committed by GitHub
6 changed files with 75 additions and 3 deletions

View File

@@ -56,6 +56,9 @@ class AccelerationRepository {
}
public async $getAccelerationInfo(poolSlug: string | null = null, height: number | null = null, interval: string | null = null): Promise<PublicAcceleration[]> {
if (!interval || !['24h', '3d', '1w', '1m'].includes(interval)) {
interval = '1m';
}
interval = Common.getSqlInterval(interval);
if (!config.MEMPOOL_SERVICES.ACCELERATIONS || (interval == null && poolSlug == null && height == null)) {