mirror of
https://github.com/lalanza808/monero.fail.git
synced 2025-08-21 02:08:11 -04:00
adding height and check func
This commit is contained in:
parent
73c608caac
commit
3d238846b8
4 changed files with 33 additions and 3 deletions
|
@ -8,7 +8,7 @@ def is_monero(url):
|
|||
"76ee3cc98646292206cd3e86f74d88b4dcc1d937088645e9b0cbca84b7ce74eb" #stagenet
|
||||
]
|
||||
try:
|
||||
r = r_get(url + "/json_rpc", json=data)
|
||||
r = r_get(url + "/json_rpc", json=data, timeout=5)
|
||||
r.raise_for_status()
|
||||
assert "result" in r.json()
|
||||
is_xmr = r.json()["result"]["block_header"]["hash"] in known_hashes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue