Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchirica committed Feb 5, 2025
1 parent 8d32169 commit 186f1ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chia/data_layer/util/merkle_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,8 @@ def get_node_by_hash(self, node_hash: bytes32) -> tuple[Optional[KeyId], Optiona

index = self.leaf_hash_to_index[node_hash]
node = self.get_raw_node(index)
if isinstance(node, RawLeafMerkleNode):
return (node.key, node.value)

return (None, None)
assert isinstance(node, RawLeafMerkleNode)
return (node.key, node.value)

def get_lineage_with_indexes(self, index: TreeIndex) -> list[tuple[TreeIndex, RawMerkleNodeProtocol]]:
node = self.get_raw_node(index=index)
Expand Down

0 comments on commit 186f1ad

Please sign in to comment.