From 61ebc2d50a642a275946aaa1225b8686a5916532 Mon Sep 17 00:00:00 2001 From: thomasv Date: Thu, 18 Oct 2012 17:16:31 +0200 Subject: [PATCH] check that tx_hash is in the merkle tree :) --- scripts/validate_tx | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/validate_tx b/scripts/validate_tx index f09c4070..8fb2778c 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