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 True:
|
||||||
while not len(peer_set):
|
while not len(peer_set):
|
||||||
sleep(0.2)
|
sleep(0.2)
|
||||||
if dandelion_phase.remaining_time <= 10:
|
if dandelion_phase.remaining_time() <= 10:
|
||||||
sleep(dandelion_phase.remaining_time)
|
sleep(dandelion_phase.remaining_time())
|
||||||
if dandelion_phase.is_stem_phase():
|
if dandelion_phase.is_stem_phase():
|
||||||
try:
|
try:
|
||||||
# Stem out blocks for (roughly) remaining epoch time
|
# Stem out blocks for (roughly) remaining epoch time
|
||||||
stem_out(
|
await stem_out(
|
||||||
block_queues, peer_set, dandelion_phase)
|
block_queues, peer_set, dandelion_phase)
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user