check that tx_hash is in the merkle tree :)

This commit is contained in:
thomasv 2012-10-18 17:16:31 +02:00
parent 633a65878f
commit 61ebc2d50a
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ def hash_header(res):
def verify_tx(tx_hash):
res = get_merkle(i, tx_hash)
assert tx_hash in res.get('merkle')
assert res.get('merkle_root') == merkle_root(res['merkle'])
block_height = res.get('block_height')
_hash = None