Compare commits

...

2 Commits

Author SHA1 Message Date
27cdbdf848 Reduce default check time to once an hour during inactive rounds 2023-10-12 22:49:43 +02:00
vires-in-numeris
87c6bd4cd9
Update RewardCall.py
CLI_ADDR/currentRound returns a string now
2023-10-12 22:42:16 +02:00

View File

@ -11,7 +11,7 @@ ORCH_TARGETS = ['http://127.0.0.1:7935']
# Global Constants
sleepTimeActive = 60 # Wait time when there is any O which has to call reward this round
sleepTimeIdle = 60 * 60 * 4 # Wait time between round checks
sleepTimeIdle = 60 * 60 * 1 # Wait time between round checks
# Logs `info` to the terminal with an attached datetime
def log(info):
@ -36,7 +36,7 @@ def getCurrentRound(url):
return 0
if r.status_code != 200:
return 0
return int(r.content.hex(), 16)
return int(r.json())
class Orchestrator:
def __init__(self, uri):