diff --git a/backend/src/api/mempool-blocks.ts b/backend/src/api/mempool-blocks.ts index fdd26799b..55f613c0d 100644 --- a/backend/src/api/mempool-blocks.ts +++ b/backend/src/api/mempool-blocks.ts @@ -46,6 +46,10 @@ class MempoolBlocks { } public async updatePools$(): Promise { + if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) === false) { + this.pools = {}; + return; + } const allPools = await PoolsRepository.$getPools(); this.pools = {}; for (const pool of allPools) {