Skip to content

Commit

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

related to #1657 and #1654

cc @benjaminhuth
  • Loading branch information
andiwand committed Nov 28, 2022
1 parent fa7bd82 commit d6f93fa
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

0 comments on commit d6f93fa

Please sign in to comment.