Add hash_tree_root tests against py-ssz

This commit is contained in:
Hsiao-Wei Wang 2019-07-25 00:17:43 +08:00
parent 82e2c559ca
commit 47714cbf64
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 1 additions and 0 deletions

View File

@ -31,3 +31,4 @@ def test_decoder():
# and see if the hash-tree-root of the original matches the hash-tree-root of the decoded & translated value. # and see if the hash-tree-root of the original matches the hash-tree-root of the decoded & translated value.
assert spec_ssz_impl.hash_tree_root(original) == spec_ssz_impl.hash_tree_root(block) assert spec_ssz_impl.hash_tree_root(original) == spec_ssz_impl.hash_tree_root(block)
assert spec_ssz_impl.hash_tree_root(original) == block_sedes.get_hash_tree_root(raw_value)