Show accelerator audit total on block page

This commit is contained in:
Mononaut
2024-03-05 00:40:49 +00:00
parent 1d877a746f
commit 7491fb512c
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)) {