Skip to content

Commit 1078335

Browse files
committed
humanize header hash in skeleton sync logs
1 parent 4c87a66 commit 1078335

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

trinity/sync/common/headers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
OrderedTaskPreparation,
6363
TaskQueue,
6464
)
65+
from trinity.utils.humanize import (
66+
humanize_hash,
67+
)
6568

6669

6770
class SkeletonSyncer(BaseService, Generic[TChainPeer]):
@@ -634,7 +637,7 @@ async def _fetch_segment(
634637
"%s returned segment starting %s & parent %s, doesn't match %s, ignoring result...",
635638
peer,
636639
headers[0],
637-
headers[0].parent_hash,
640+
humanize_hash(headers[0].parent_hash),
638641
parent_header,
639642
)
640643
return tuple()
@@ -803,7 +806,7 @@ async def _full_skeleton_sync(self, skeleton_syncer: SkeletonSyncer[TChainPeer])
803806

804807
self.logger.debug(
805808
"Skeleton syncer asserts that parent (%s) of the first header (%s) is already present",
806-
first_segment[0].parent_hash,
809+
humanize_hash(first_segment[0].parent_hash),
807810
first_segment[0],
808811
)
809812
first_parent = await self._db.coro_get_block_header_by_hash(first_segment[0].parent_hash)

0 commit comments

Comments
 (0)