add donation address

This commit is contained in:
lza_menace 2023-04-04 00:27:44 -07:00
parent 2fb28e90fb
commit 4b9e4591c3
4 changed files with 35 additions and 12 deletions

View file

@ -37,6 +37,8 @@ def check():
assert "status" in r.json()
assert "offline" in r.json()
assert "height" in r.json()
if 'donation_address' in r.json():
node.donation_address = r.json()['donation_address']
has_cors = "Access-Control-Allow-Origin" in r.headers
is_ssl = node.url.startswith("https://")
if r.json()["status"] == "OK":