Disable pool update when running lightning only

This commit is contained in:
nymkappa 2023-03-13 17:24:23 +09:00
parent 7acfec2406
commit ecfb980e75
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -17,7 +17,9 @@ class PoolsUpdater {
treeUrl: string = config.MEMPOOL.POOLS_JSON_TREE_URL;
public async updatePoolsJson(): Promise<void> {
if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) === false) {
if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) === false ||
config.MEMPOOL.ENABLED === false
) {
return;
}