tree_ssz: fix extra parens

Co-Authored-By: arnetheduck <arnetheduck@gmail.com>
This commit is contained in:
Hsiao-Wei Wang 2018-11-20 08:12:56 -06:00 committed by GitHub
parent ea7ad28298
commit a217e9b32c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ def merkle_hash(lst):
chunkz = [hash(chunkz[i] + chunkz[i+1]) for i in range(0, len(chunkz), 2)] chunkz = [hash(chunkz[i] + chunkz[i+1]) for i in range(0, len(chunkz), 2)]
# Return hash of root and length data # Return hash of root and length data
return hash((chunkz[0] + datalen) return hash(chunkz[0] + datalen)
``` ```
To `tree_hash` a list, we simply do: To `tree_hash` a list, we simply do: