From 017ac281a2086ef688cfa632ed7f09984e482e82 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 10 Nov 2017 23:53:43 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_cache.c b/iguana/exchanges/LP_cache.c index c66957bd1..4be0a5fc5 100644 --- a/iguana/exchanges/LP_cache.c +++ b/iguana/exchanges/LP_cache.c @@ -100,7 +100,7 @@ void LP_SPV_store(struct iguana_info *coin,bits256 txid,int32_t height) fwrite(tx->serialized,1,tx->len,fp); fclose(fp); } - } + } else printf("cant store tx.%p len.%d\n",tx,tx!=0?tx->len:0); } int32_t LP_cacheitem(struct iguana_info *coin,FILE *fp) @@ -245,7 +245,7 @@ int32_t LP_merkleproof(struct iguana_info *coin,struct electrum_info *ep,bits256 if ( tx != 0 ) tx->SPV = height; LP_SPV_store(coin,txid,height); - //printf("validated MERK %s ht.%d -> %s root.(%s)\n",bits256_str(str,up->U.txid),up->U.height,jprint(merkobj,0),bits256_str(str2,roothash)); + printf("validated MERK %s ht.%d -> %s root.(%s)\n",bits256_str(str,txid),height,jprint(merkobj,0),bits256_str(str2,roothash)); } else printf("ERROR MERK %s ht.%d -> %s root.(%s) vs %s\n",bits256_str(str,txid),height,jprint(merkobj,0),bits256_str(str2,roothash),bits256_str(str3,merkleroot)); } else SPV = 0;