Skip to content

Commit

Permalink
Update check-health.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic-chain committed Feb 13, 2023
1 parent 27b8bd7 commit b4f9044
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions check-health.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,14 +303,14 @@ def check_val():
report.write(" 20. ERROR: market.collateral_wallet is null! \n")
elif collateral_wallet != b_collateral_wallet:
report.write(
" 20. market.collateral_wallet is not the same as in the boost configuration file. \n")
" 20. Warn: market.collateral_wallet is not the same as in the boost configuration file. \n")
else:
report.write(" 20. bid.collateral_wallet is ok. \n")
if len(publish_wallet) == 0:
report.write(" 21. ERROR: market.publish_wallet is null! \n")
elif publish_wallet != b_publish_wallet:
report.write(
" 21. market.publish_wallet is not the same as in the boost configuration file. \n")
" 21. Warn: market.publish_wallet is not the same as in the boost configuration file. \n")
else:
report.write(" 21. market.publish_wallet is ok. \n")
if len(collateral_wallet) > 0:
Expand All @@ -321,7 +321,7 @@ def check_val():
"params": [collateral_wallet],
"id": 7878
}
r = requests.post('https://api.node.glif.io/rpc/v0', json=data, headers=headers,
r = requests.post('https://api.calibration.node.glif.io/rpc/v0', json=data, headers=headers,
timeout=6)
if r.status_code != 200:
report.write(
Expand All @@ -348,7 +348,7 @@ def check_query():
miner_fid = value
break
headers = {'content-type': 'application/json'}
r = requests.get('https://api.filswan.com/tools/check_connectivity?storage_provider_id=' + miner_fid,
r = requests.get('https://calibration-api.filswan.com/tools/check_connectivity?storage_provider_id=' + miner_fid,
headers=headers, timeout=6)
if r.status_code != 200:
report.write(" ERROR: Check miner query-ask failed! return data is " + r.text + " \n")
Expand Down

0 comments on commit b4f9044

Please sign in to comment.