Skip to content

Commit 3bd386c

Browse files
committed
PR feedback
1 parent d9b4e40 commit 3bd386c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eth/db/header.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ def get_canonical_head(self) -> BlockHeaderAPI:
8484
@classmethod
8585
def _get_canonical_head(cls, db: DatabaseAPI) -> BlockHeaderAPI:
8686
canonical_head_hash = cls._get_canonical_head_hash(db)
87-
return cls._get_block_header_by_hash(db, Hash32(canonical_head_hash))
87+
return cls._get_block_header_by_hash(db, canonical_head_hash)
8888

8989
@classmethod
9090
def _get_canonical_head_hash(cls, db: DatabaseAPI) -> Hash32:
9191
try:
92-
return cast(Hash32, db[SchemaV1.make_canonical_head_hash_lookup_key()])
92+
return Hash32(db[SchemaV1.make_canonical_head_hash_lookup_key()])
9393
except KeyError:
9494
raise CanonicalHeadNotFound("No canonical head set for this chain")
9595

0 commit comments

Comments
 (0)