Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 54fb40f

Browse files
committed
cleanup import logging output
1 parent 86e608c commit 54fb40f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

p2p/chain.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,11 @@ async def _process_headers(self, peer: ETHPeer, headers: List[BlockHeader]) -> i
272272

273273
head = await self.chaindb.coro_get_canonical_head()
274274
self.logger.info(
275-
"Imported chain segment in %d seconds, new head: #%d (%s)",
275+
"Imported %d headers in %0.2f seconds, new head: #%d (%s)",
276+
len(headers),
276277
time.time() - start,
277278
head.block_number,
278-
encode_hex(head.hash)[2:6],
279+
encode_hex(head.hash)[2:8],
279280
)
280281
# Quite often the header batch we receive here includes headers past the peer's reported
281282
# head (via the NewBlock msg), so we can't compare our head's hash to the peer's in

0 commit comments

Comments
 (0)