Fix mempool busy waiting

Prepare 0.9.2
This commit is contained in:
Neil Booth 2016-12-12 07:38:40 +09:00
parent 5f18096a50
commit bb17af1906
3 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,8 @@
version 0.9.2
-------------
- fix mempool busy waiting
version 0.9.1
-------------

View File

@ -91,11 +91,12 @@ class MemPool(util.LoggedClass):
if self.touched:
self.touched_event.set()
if log_secs <= 0 and not unprocessed:
log_secs = log_every
self.logger.info('{:,d} txs touching {:,d} addresses'
.format(len(self.txs),
len(self.hash168s)))
if not unprocessed:
if log_secs <= 0:
log_secs = log_every
self.logger.info('{:,d} txs touching {:,d} addresses'
.format(len(self.txs),
len(self.hash168s)))
await asyncio.sleep(1)
except DaemonError as e:
self.logger.info('ignoring daemon error: {}'.format(e))

View File

@ -1 +1 @@
VERSION = "ElectrumX 0.9.1"
VERSION = "ElectrumX 0.9.2"