Show accelerator audit total on block page

This commit is contained in:
Mononaut committed 2024-03-07 19:46:24 +00:00
1 parent 1d877a746f
commit 7491fb512c
6 files changed
+75 -3

No files matched your search

@@ -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)) {