comment the broadcast interruption case

This commit is contained in:
Victor Shyba 2019-12-19 16:20:12 -03:00
parent ada03e12fc
commit 84b8a22423

View file

@ -213,6 +213,7 @@ class MemPool:
synchronized_event.clear()
await self.api.on_mempool(touched, height)
try:
# we wait up to `refresh_secs` but go early if a broadcast happens (which triggers wakeup event)
await asyncio.wait_for(self.wakeup.wait(), timeout=self.refresh_secs)
except asyncio.TimeoutError:
pass