Merge pull request #5141 from mempool/nymkappa/liquid-fix

[liquid] don't fetch pools
This commit is contained in:
wiz 2024-06-05 15:31:44 +09:00 committed by GitHub
commit 22a48efd19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,10 @@ class MempoolBlocks {
}
public async updatePools$(): Promise<void> {
if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) === false) {
this.pools = {};
return;
}
const allPools = await PoolsRepository.$getPools();
this.pools = {};
for (const pool of allPools) {