comment the broadcast interruption case
This commit is contained in:
parent
ada03e12fc
commit
84b8a22423
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue