Skip to content

Commit

Permalink
fix(wallet): Fix blocktankNodeUris
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyphillips committed Aug 24, 2023
1 parent e8f82c4 commit 572ca23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/lightning/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,8 @@ export const getLightningNodePeers = async ({
// No need to add Blocktank peer if geo-blocked.
if (!geoBlocked) {
// Set Blocktank node uri array if able.
blocktankNodeUris = getBlocktankStore()?.info?.node_info?.uris ?? [];
blocktankNodeUris =
getBlocktankStore()?.info?.nodes[0].connectionStrings ?? [];
if (!blocktankNodeUris.length) {
// Fall back to hardcoded Blocktank peer if the blocktankNodeUris array is empty.
blocktankNodeUris = FALLBACK_BLOCKTANK_PEERS[selectedNetwork];
Expand Down

0 comments on commit 572ca23

Please sign in to comment.