Implement accelerations API & config setting

This commit is contained in:
Mononaut
2023-05-30 19:51:11 -04:00
parent 8e295969a3
commit 8ade3be8cb
7 changed files with 43 additions and 1 deletions

View File

@@ -337,6 +337,10 @@ class Mempool {
}
public async $updateAccelerations(): Promise<string[]> {
if (!config.MEMPOOL_SERVICES.ACCELERATIONS) {
return [];
}
try {
const newAccelerations = await accelerationApi.fetchAccelerations$();