Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed Jan 31, 2025
1 parent 9ddec69 commit 4f8d32c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/hash_verification/hasher/xor_hasher.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ func (x XorHashCalculator) ComputeHashes() [][]byte {
for i := 1; i < len(allHashes); i++ {
if len(allHashes[i-1]) > 0 && len(allHashes[i]) > 0 {
allHashes[i] = x.HashTwo(allHashes[i-1], allHashes[i])
} else if len(allHashes[i-1]) > 0 && len(allHashes[i]) == 0 {
allHashes[i] = allHashes[i-1]
}
}
return allHashes
Expand Down

0 comments on commit 4f8d32c

Please sign in to comment.