git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
633a658
)
check that tx_hash is in the merkle tree :)
author
thomasv
<thomasv@gitorious>
Thu, 18 Oct 2012 15:16:31 +0000 (17:16 +0200)
committer
thomasv
<thomasv@gitorious>
Thu, 18 Oct 2012 15:16:31 +0000 (17:16 +0200)
scripts/validate_tx
patch
|
blob
|
history
diff --git
a/scripts/validate_tx
b/scripts/validate_tx
index
f09c407
..
8fb2778
100755
(executable)
--- a/
scripts/validate_tx
+++ b/
scripts/validate_tx
@@
-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