Log block processing time only if not syncing
Prepare 0.9.10
This commit is contained in:
parent
1ebebf08d9
commit
3f64a8dd6e
@ -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
|
version 0.9.9
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|||||||
@ -201,9 +201,11 @@ class BlockProcessor(server.db.DB):
|
|||||||
if blocks:
|
if blocks:
|
||||||
start = time.time()
|
start = time.time()
|
||||||
await self.advance_blocks(blocks, touched)
|
await self.advance_blocks(blocks, touched)
|
||||||
s = '' if len(blocks) == 1 else 's'
|
if not self.first_sync:
|
||||||
self.logger.info('processed {:,d} block{} in {:.1f}s'
|
s = '' if len(blocks) == 1 else 's'
|
||||||
.format(len(blocks), s, time.time() - start))
|
self.logger.info('processed {:,d} block{} in {:.1f}s'
|
||||||
|
.format(len(blocks), s,
|
||||||
|
time.time() - start))
|
||||||
elif not self.caught_up:
|
elif not self.caught_up:
|
||||||
self.caught_up = True
|
self.caught_up = True
|
||||||
self.first_caught_up()
|
self.first_caught_up()
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
VERSION = "ElectrumX 0.9.9"
|
VERSION = "ElectrumX 0.9.10"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user