Skip to content

Commit

Permalink
Merge #58: [Core] Update explorer endpoints
Browse files Browse the repository at this point in the history
0bc5657 [Core] Update explorer endpoints (Fuzzbawls)

Pull request description:

  Both mainnet and testnet explorer endpoints are updated.

ACKs for top commit:
  Liquid369:
    tACK 0bc5657

Tree-SHA512: f1a0e0b9897df623cf43c0290036ccd1eb4d9ad04cb35469a18a93298913d775b5402791ec9b225f274e2a4dc4da0d660d674fb939900deefa9c5cde40daefe1
  • Loading branch information
Fuzzbawls committed Apr 14, 2024
2 parents 0c8c3f4 + 0bc5657 commit 0dbdef8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blockbookClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def process_blockbook_exceptions_int(*args, **kwargs):
return func(*args, **kwargs)
except Exception as e:
if client.isTestnet:
new_url = "https://testnet.fuzzbawls.pw"
new_url = "https://testnet.duddino.com/"
else:
new_url = "https://zkbitcoin.com/"
message = "BlockBook Client exception on %s\nTrying backup server %s" % (client.url, new_url)
Expand All @@ -37,9 +37,9 @@ class BlockBookClient:
def __init__(self, isTestnet=False):
self.isTestnet = isTestnet
if isTestnet:
self.url = "https://testnet.rockdev.org/"
self.url = "https://testnet.fuzzbawls.pw"
else:
self.url = "https://explorer.rockdev.org/"
self.url = "https://explorer.duddino.com/"

def checkResponse(self, method, param=""):
url = self.url + "/api/%s" % method
Expand Down

0 comments on commit 0dbdef8

Please sign in to comment.