Skip to content

Commit

Permalink
Merge pull request #51 from LN-Zap/refactor
Browse files Browse the repository at this point in the history
Register bitcoind provider before esplora
  • Loading branch information
mrfelton authored Feb 19, 2024
2 parents ec1fc99 + f5c8d2d commit 92c1e19
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 92c1e19

Please sign in to comment.