diff --git a/backend/src/__fixtures__/mempool-config.template.json b/backend/src/__fixtures__/mempool-config.template.json index afb9a8ae3..e9c5c3576 100644 --- a/backend/src/__fixtures__/mempool-config.template.json +++ b/backend/src/__fixtures__/mempool-config.template.json @@ -21,7 +21,9 @@ "EXTERNAL_RETRY_INTERVAL": 13, "USER_AGENT": "__MEMPOOL_USER_AGENT__", "STDOUT_LOG_MIN_PRIORITY": "__MEMPOOL_STDOUT_LOG_MIN_PRIORITY__", - "INDEXING_BLOCKS_AMOUNT": 14 + "INDEXING_BLOCKS_AMOUNT": 14, + "POOLS_JSON_TREE_URL": "__POOLS_JSON_TREE_URL__", + "POOLS_JSON_URL": "__POOLS_JSON_URL__" }, "CORE_RPC": { "HOST": "__CORE_RPC_HOST__", diff --git a/backend/src/__tests__/config.test.ts b/backend/src/__tests__/config.test.ts index a2ea18058..9453505f4 100644 --- a/backend/src/__tests__/config.test.ts +++ b/backend/src/__tests__/config.test.ts @@ -34,7 +34,9 @@ describe('Mempool Backend Config', () => { EXTERNAL_MAX_RETRY: 1, EXTERNAL_RETRY_INTERVAL: 0, USER_AGENT: 'mempool', - STDOUT_LOG_MIN_PRIORITY: 'debug' + STDOUT_LOG_MIN_PRIORITY: 'debug', + POOLS_JSON_TREE_URL: 'https://api.github.com/repos/mempool/mining-pools/git/trees/master', + POOLS_JSON_URL: 'https://raw.githubusercontent.com/mempool/mining-pools/master/pools.json' }); expect(config.ELECTRUM).toStrictEqual({ HOST: '127.0.0.1', PORT: 3306, TLS_ENABLED: true });