Log block processing time only if not syncing

Prepare 0.9.10
This commit is contained in:
Neil Booth 2016-12-17 15:31:30 +09:00
parent 1ebebf08d9
commit 3f64a8dd6e
3 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,11 @@
** Please don't run version 0.10.0, it will corrupt your DB.
version 0.9.10
--------------
- logging improvements
- fixed issue #76 (RPCError namespace)
version 0.9.9
-------------

View File

@ -201,9 +201,11 @@ class BlockProcessor(server.db.DB):
if blocks:
start = time.time()
await self.advance_blocks(blocks, touched)
s = '' if len(blocks) == 1 else 's'
self.logger.info('processed {:,d} block{} in {:.1f}s'
.format(len(blocks), s, time.time() - start))
if not self.first_sync:
s = '' if len(blocks) == 1 else 's'
self.logger.info('processed {:,d} block{} in {:.1f}s'
.format(len(blocks), s,
time.time() - start))
elif not self.caught_up:
self.caught_up = True
self.first_caught_up()

View File

@ -1 +1 @@
VERSION = "ElectrumX 0.9.9"
VERSION = "ElectrumX 0.9.10"