Compare commits

..

No commits in common. "27cdbdf848480168fd8bc10ebf4ce28cf99d4fdf" and "935d0fcefa0dbbf7934917fb248e2262fadff763" have entirely different histories.

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 * 1 # Wait time between round checks
sleepTimeIdle = 60 * 60 * 4 # 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.json())
return int(r.content.hex(), 16)
class Orchestrator:
def __init__(self, uri):