mirror of
https://github.com/stronk-dev/RewardCaller.git
synced 2025-07-05 22:05:09 +02:00
Compare commits
2 Commits
935d0fcefa
...
27cdbdf848
Author | SHA1 | Date | |
---|---|---|---|
27cdbdf848 | |||
|
87c6bd4cd9 |
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user