Skip to content

Commit

Permalink
Merge pull request synonymdev#1015 from synonymdev/bt-user-agent
Browse files Browse the repository at this point in the history
feat(lightning): Set user agent for Blocktank requests
  • Loading branch information
Jasonvdb authored May 3, 2023
2 parents 737d2ca + ec6ea04 commit b07fe44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/blocktank/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const unsettledStatuses = [0, 100, 200, 300, 350, 500];
* @returns {void}
*/
export const setupBlocktank = (selectedNetwork: TAvailableNetworks): void => {
bt.setHeaders({ 'User-Agent': 'Bitkit' });
if (selectedNetwork === EAvailableNetworks.bitcoinTestnet) {
return;
} else if (selectedNetwork === EAvailableNetworks.bitcoinRegtest) {
Expand Down

0 comments on commit b07fe44

Please sign in to comment.