corrected remaining_time being used as atter when resting during end op remaining time in dandelion client loop
This commit is contained in:
parent
be1dde95a6
commit
8b2b6a613e
@ -76,12 +76,12 @@ def gossip_client(
|
||||
while True:
|
||||
while not len(peer_set):
|
||||
sleep(0.2)
|
||||
if dandelion_phase.remaining_time <= 10:
|
||||
sleep(dandelion_phase.remaining_time)
|
||||
if dandelion_phase.remaining_time() <= 10:
|
||||
sleep(dandelion_phase.remaining_time())
|
||||
if dandelion_phase.is_stem_phase():
|
||||
try:
|
||||
# Stem out blocks for (roughly) remaining epoch time
|
||||
stem_out(
|
||||
await stem_out(
|
||||
block_queues, peer_set, dandelion_phase)
|
||||
except TimeoutError:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user