Skip to content

Commit

Permalink
Register bitcoind provider before esplora
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Feb 19, 2024
1 parent 077a858 commit f5c8d2d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,6 @@ MEMPOOL_FALLBACK_BASE_URL &&
new MempoolProvider(MEMPOOL_FALLBACK_BASE_URL, MEMPOOL_DEPTH, TIMEOUT),
);

ESPLORA_BASE_URL &&
service.registerProvider(
new EsploraProvider(ESPLORA_BASE_URL, 1008, TIMEOUT),
);

ESPLORA_FALLBACK_BASE_URL &&
service.registerProvider(
new EsploraProvider(ESPLORA_FALLBACK_BASE_URL, 1008, TIMEOUT),
);

BITCOIND_BASE_URL &&
service.registerProvider(
new BitcoindProvider(
Expand All @@ -87,6 +77,16 @@ BITCOIND_BASE_URL &&
),
);

ESPLORA_BASE_URL &&
service.registerProvider(
new EsploraProvider(ESPLORA_BASE_URL, 1008, TIMEOUT),
);

ESPLORA_FALLBACK_BASE_URL &&
service.registerProvider(
new EsploraProvider(ESPLORA_FALLBACK_BASE_URL, 1008, TIMEOUT),
);

// Define the app.

// Initialize the Express app.
Expand Down

0 comments on commit f5c8d2d

Please sign in to comment.