mirror of
https://github.com/stronk-dev/RewardCaller.git
synced 2025-07-06 14:25:09 +02:00
Compare commits
No commits in common. "27cdbdf848480168fd8bc10ebf4ce28cf99d4fdf" and "935d0fcefa0dbbf7934917fb248e2262fadff763" have entirely different histories.
27cdbdf848
...
935d0fcefa
@ -11,7 +11,7 @@ ORCH_TARGETS = ['http://127.0.0.1:7935']
|
|||||||
|
|
||||||
# Global Constants
|
# Global Constants
|
||||||
sleepTimeActive = 60 # Wait time when there is any O which has to call reward this round
|
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
|
# Logs `info` to the terminal with an attached datetime
|
||||||
def log(info):
|
def log(info):
|
||||||
@ -36,7 +36,7 @@ def getCurrentRound(url):
|
|||||||
return 0
|
return 0
|
||||||
if r.status_code != 200:
|
if r.status_code != 200:
|
||||||
return 0
|
return 0
|
||||||
return int(r.json())
|
return int(r.content.hex(), 16)
|
||||||
|
|
||||||
class Orchestrator:
|
class Orchestrator:
|
||||||
def __init__(self, uri):
|
def __init__(self, uri):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user