Skip to content

Commit

Permalink
Edit default node url and log CF-RAY unique request id (tezos-reward-…
Browse files Browse the repository at this point in the history
  • Loading branch information
amzid authored and jdsika committed Jan 14, 2020
1 parent 0fdfe65 commit 9252a86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def is_processed(self):
def __str__(self):
return self.name

PUBLIC_NODE_URL = { "MAINNET": ["https://api.tezos.org.ua/", "https://teznode.letzbake.com/"],
"ALPHANET": ["https://tezos-dev.cryptonomic-infra.tech/"],
"ZERONET": ["https://rpczero.tzbeta.net/"]}
PUBLIC_NODE_URL = { "MAINNET": ["https://mainnet.tezos.org.ua", "https://teznode.letzbake.com"],
"ALPHANET": ["https://tezos-dev.cryptonomic-infra.tech"],
"ZERONET": ["https://rpczero.tzbeta.net"]}
2 changes: 1 addition & 1 deletion src/rpc/rpc_reward_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def do_rpc_request(self, request, time_out=120):

resp = requests.get(request, timeout=time_out)
if resp.status_code != 200:
raise Exception("Request '{} failed with status code {}".format(request, resp.status_code))
raise Exception("Request '{} failed with status code {}, after {}, unique request_id {}".format(request, resp.status_code, time_out, resp.headers['CF-RAY']))

response = resp.json()
if self.verbose:
Expand Down

0 comments on commit 9252a86

Please sign in to comment.