electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 61ebc2d50a642a275946aaa1225b8686a5916532
parent 633a65878f024dc686542d1a18171fc58d86a3be
Author: thomasv <thomasv@gitorious>
Date:   Thu, 18 Oct 2012 17:16:31 +0200

check that tx_hash is in the merkle tree :)

Diffstat:
Mscripts/validate_tx | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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