URI: 
       tupdate validate script with 0.5 protocol - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 59673ccda7492c2f9d2a4fa4084f295f6418b053
   DIR parent 765201be4e299560b8965b483b340a392665ca03
  HTML Author: thomasv <thomasv@gitorious>
       Date:   Mon,  5 Nov 2012 11:49:25 +0100
       
       update validate script with 0.5 protocol
       
       Diffstat:
         M scripts/validate_tx                 |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/scripts/validate_tx b/scripts/validate_tx
       t@@ -29,11 +29,11 @@ def hash_header(res):
        
        
        def verify_tx(tx_hash):
       -    rawtx = i.synchronous_get([ ('blockchain.transaction.get',[tx_hash]) ])[0]
       -    print rawtx
       -    return
            
            res = i.synchronous_get([ ('blockchain.transaction.get_merkle',[tx_hash]) ])[0]
       +    raw_tx = i.synchronous_get([ ('blockchain.transaction.get',[tx_hash, res['block_height']]) ])[0]
       +    assert hash_encode(Hash(raw_tx.decode('hex'))) == tx_hash
       +
            merkle_root = hash_merkle_root(res['merkle'], tx_hash, res['pos'])
            tx_height = res.get('block_height')
            headers_requests = []