|
@ -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() |
|
|