mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 14:40:38 +01:00
Don't try to run pools parser if db is not enabled
This commit is contained in:
parent
3bdd11ab37
commit
e590759b7b
2 changed files with 1 additions and 3 deletions
|
@ -25,8 +25,6 @@ import databaseMigration from './api/database-migration';
|
|||
import syncAssets from './sync-assets';
|
||||
import icons from './api/liquid/icons';
|
||||
import { Common } from './api/common';
|
||||
import mining from './api/mining';
|
||||
import HashratesRepository from './repositories/HashratesRepository';
|
||||
import poolsUpdater from './tasks/pools-updater';
|
||||
import indexer from './indexer';
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ class PoolsUpdater {
|
|||
}
|
||||
|
||||
public async updatePoolsJson() {
|
||||
if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) === false) {
|
||||
if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) === false || config.DATABASE.ENABLED === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue