Skip to content

Commit 7bd9668

Browse files
authored
Fix delta file to use new format in duplicate hash. (#19582)
1 parent 476ab8c commit 7bd9668

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

chia/data_layer/download_data.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,8 @@ async def write_files_for_root(
9898
pass
9999

100100
try:
101-
last_seen_generation = await data_store.get_last_tree_root_by_hash(
102-
store_id, root.node_hash, max_generation=root.generation
103-
)
104-
if last_seen_generation is None:
105-
with open(filename_diff_tree, mode) as writer:
106-
await data_store.write_tree_to_file(root, node_hash, store_id, True, writer)
107-
else:
108-
open(filename_diff_tree, mode).close()
101+
with open(filename_diff_tree, mode) as writer:
102+
await data_store.write_tree_to_file(root, node_hash, store_id, True, writer)
109103
written = True
110104
except FileExistsError:
111105
pass

0 commit comments

Comments
 (0)