Skip to content

Commit

Permalink
fix: root hash only for last cycle (acts-project#1692)
Browse files Browse the repository at this point in the history
calculate root hash only for the last cycle

related to acts-project#1657 and acts-project#1654

cc @benjaminhuth
  • Loading branch information
andiwand authored and Carlo Varni committed Dec 22, 2022
1 parent b73995f commit adb9b17
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 94 deletions.
2 changes: 1 addition & 1 deletion Examples/Python/tests/helpers/hash_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def hash_root_file(path: Path, ordering_invariant: bool = True) -> str:

gh = hashlib.sha256()

for tree_name in sorted(rf.keys()):
for tree_name in sorted(rf.keys(cycle=False)):
gh.update(tree_name.encode("utf8"))

try:
Expand Down
Loading

0 comments on commit adb9b17

Please sign in to comment.