forked from LBRYCommunity/lbry-sdk
non blocking mempool loop
This commit is contained in:
parent
d1560ef09b
commit
cd1ce32377
1 changed files with 3 additions and 1 deletions
|
@ -663,7 +663,9 @@ class SessionManager:
|
||||||
for hashX in touched.intersection(self.mempool_statuses.keys()):
|
for hashX in touched.intersection(self.mempool_statuses.keys()):
|
||||||
self.mempool_statuses.pop(hashX, None)
|
self.mempool_statuses.pop(hashX, None)
|
||||||
|
|
||||||
touched.intersection_update(self.hashx_subscriptions_by_session.keys())
|
await asyncio.get_event_loop().run_in_executor(
|
||||||
|
None, touched.intersection_update, self.hashx_subscriptions_by_session.keys()
|
||||||
|
)
|
||||||
|
|
||||||
if touched or (height_changed and self.mempool_statuses):
|
if touched or (height_changed and self.mempool_statuses):
|
||||||
notified_hashxs = 0
|
notified_hashxs = 0
|
||||||
|
|
Loading…
Reference in a new issue