Skip to content

Commit 0093eab

Browse files
committed
Liquid always uses esplora (regression of #2039)
1 parent b8b50b5 commit 0093eab

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

backend/src/api/blocks.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -527,13 +527,12 @@ class Blocks {
527527
}
528528
}
529529

530-
let block = await bitcoinClient.getBlock(hash);
531-
532530
// Not Bitcoin network, return the block as it
533531
if (['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) === false) {
534-
return block;
532+
return await bitcoinApi.$getBlock(hash);
535533
}
536534

535+
let block = await bitcoinClient.getBlock(hash);
537536
block = prepareBlock(block);
538537

539538
// Bitcoin network, add our custom data on top
@@ -547,8 +546,8 @@ class Blocks {
547546
return blockExtended;
548547
}
549548

550-
public async $getStrippedBlockTransactions(hash: string, skipMemoryCache: boolean = false,
551-
skipDBLookup: boolean = false): Promise<TransactionStripped[]>
549+
public async $getStrippedBlockTransactions(hash: string, skipMemoryCache = false,
550+
skipDBLookup = false): Promise<TransactionStripped[]>
552551
{
553552
if (skipMemoryCache === false) {
554553
// Check the memory cache

backend/src/api/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class Common {
172172

173173
static indexingEnabled(): boolean {
174174
return (
175-
['mainnet', 'testnet', 'signet', 'regtest'].includes(config.MEMPOOL.NETWORK) &&
175+
['mainnet', 'testnet', 'signet'].includes(config.MEMPOOL.NETWORK) &&
176176
config.DATABASE.ENABLED === true &&
177177
config.MEMPOOL.INDEXING_BLOCKS_AMOUNT !== 0
178178
);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy