Skip to content

Commit

Permalink
Try to fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
fchirica committed Jan 29, 2025
1 parent 2b08935 commit 942ad22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chia/data_layer/data_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ async def write_tree_to_file(
hash_to_index = merkle_blob.get_hashes_indexes()
if existing_hashes is None:
if root.generation == 0:
existing_hashes = {}
existing_hashes = set()
else:
previous_root = await self.get_tree_root(store_id=store_id, generation=root.generation - 1)
previous_merkle_blob = await self.get_merkle_blob(previous_root.node_hash)
Expand Down

0 comments on commit 942ad22

Please sign in to comment.