Don't try to run pools parser if db is not enabled

This commit is contained in:
nymkappa committed 2022-05-27 10:31:49 +02:00
1 parent 3bdd11ab37
commit e590759b7b
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -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;
}