From: thomasv Date: Thu, 18 Oct 2012 15:16:31 +0000 (+0200) Subject: check that tx_hash is in the merkle tree :) X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=61ebc2d50a642a275946aaa1225b8686a5916532;hp=633a65878f024dc686542d1a18171fc58d86a3be;p=electrum-nvc.git check that tx_hash is in the merkle tree :) --- diff --git a/scripts/validate_tx b/scripts/validate_tx index f09c407..8fb2778 100755 --- 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