check that tx_hash is in the merkle tree :)
This commit is contained in:
parent
633a65878f
commit
61ebc2d50a
|
@ -71,6 +71,7 @@ def hash_header(res):
|
||||||
|
|
||||||
def verify_tx(tx_hash):
|
def verify_tx(tx_hash):
|
||||||
res = get_merkle(i, tx_hash)
|
res = get_merkle(i, tx_hash)
|
||||||
|
assert tx_hash in res.get('merkle')
|
||||||
assert res.get('merkle_root') == merkle_root(res['merkle'])
|
assert res.get('merkle_root') == merkle_root(res['merkle'])
|
||||||
block_height = res.get('block_height')
|
block_height = res.get('block_height')
|
||||||
_hash = None
|
_hash = None
|
||||||
|
|
Loading…
Reference in New Issue