1
0

new protocol: the server sends serialized tx, deserialize it in the client

This commit is contained in:
thomasv
2012-11-03 09:17:40 +01:00
committed by ThomasV
parent ea42a74824
commit 4cbee7554f
6 changed files with 504 additions and 95 deletions

View File

@@ -29,6 +29,10 @@ 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]
merkle_root = hash_merkle_root(res['merkle'], tx_hash, res['pos'])
tx_height = res.get('block_height')