mirror of
https://github.com/tig-pool-nk/tig-monorepo.git
synced 2026-02-21 15:17:22 +08:00
Skip not yet active challenges.
This commit is contained in:
parent
cd99988b3a
commit
0d524aa08c
@ -67,10 +67,12 @@ class JobManager:
|
||||
self.hash_thresholds[x.details.block_started] = {
|
||||
c['id']: c['block_data']['hash_threshold']
|
||||
for c in d["challenges"]
|
||||
if c['state']['round_active'] <= block.details.round
|
||||
}
|
||||
self.average_solution_ratio[x.details.block_started] = {
|
||||
c['id']: c['block_data']['average_solution_ratio']
|
||||
for c in d["challenges"]
|
||||
if c['state']['round_active'] <= block.details.round
|
||||
}
|
||||
hash_threshold = self.hash_thresholds[x.details.block_started][x.settings.challenge_id]
|
||||
average_solution_ratio = self.average_solution_ratio[x.details.block_started][x.settings.challenge_id]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user