Skip to content

Commit

Permalink
[RPC] Switch default and backup bb clients
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Dec 27, 2019
1 parent bb105c6 commit 8530f3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/blockbookClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def process_blockbook_exceptions_int(*args, **kwargs):
return func(*args, **kwargs)
except Exception as e:
if client.isTestnet:
new_url = "https://testnet.pivx.link"
new_url = "https://blockbook-testnet.pivx.link"
else:
new_url = "https://explorer.pivx.link"
new_url = "https://blockbook.pivx.link"
message = "BlockBook Client exception on %s\nTrying backup server %s" % (client.url, new_url)
printException(getCallerName(True), getFunctionName(True), message, str(e))
try:
Expand All @@ -38,9 +38,9 @@ class BlockBookClient:
def __init__(self, isTestnet=False):
self.isTestnet = isTestnet
if isTestnet:
self.url = "https://blockbook-testnet.pivx.link"
self.url = "https://testnet.pivx.link"
else:
self.url = "https://blockbook.pivx.link"
self.url = "https://explorer.pivx.link"



Expand Down

0 comments on commit 8530f3d

Please sign in to comment.