mirror of
https://github.com/mempool/mempool.git
synced 2026-08-18 13:08:44 +02:00
Disable pool update when running lightning only
This commit is contained in:
parent
7acfec2406
commit
ecfb980e75
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue