From 3e0bd41fe1801c6eb74bdcd223f81697025e5099 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 15 Sep 2016 12:06:28 -0300 Subject: [PATCH] test --- iguana/iguana_realtime.c | 8 ++++---- iguana/iguana_recv.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index 2beac046c..491c7f6c9 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -153,14 +153,14 @@ void iguana_RTcoinaddr(struct iguana_info *coin,struct iguana_RTtxid *RTptr,stru coin->RTcredits += polarity * value; if ( polarity > 0 ) { - printf("%s lastunspent[%d] <- %p\n",coinaddr,RTaddr->numunspents,unspent); + //printf("%s lastunspent[%d] <- %p\n",coinaddr,RTaddr->numunspents,unspent); RTaddr->numunspents++; unspent->prevunspent = RTaddr->lastunspent; RTaddr->lastunspent = unspent; } else if ( polarity < 0 ) { - printf("%s lastunspent[%d] -> last.%p %p\n",coinaddr,RTaddr->numunspents,RTaddr->lastunspent,unspent); + //printf("%s lastunspent[%d] -> last.%p %p\n",coinaddr,RTaddr->numunspents,RTaddr->lastunspent,unspent); if ( RTaddr->lastunspent == unspent ) { RTaddr->lastunspent = unspent->prevunspent; @@ -192,7 +192,7 @@ struct iguana_RTunspent *iguana_RTunspent_create(uint8_t *rmd160,int64_t value,u void iguana_RTunspent(struct iguana_info *coin,struct iguana_RTtxid *RTptr,struct iguana_block *block,int64_t polarity,char *coinaddr,uint8_t *rmd160,int32_t type,uint8_t *script,int32_t scriptlen,bits256 txid,int32_t vout,int64_t value) { int32_t i; struct iguana_RTunspent *unspent; char str[65]; - printf("iguana_RTunspent.%lld %s vout.%d %.8f\n",(long long)polarity,coinaddr,vout,dstr(value)); + //printf("iguana_RTunspent.%lld %s vout.%d %.8f\n",(long long)polarity,coinaddr,vout,dstr(value)); //fprintf(stderr,"+"); if ( RTptr != 0 ) { @@ -247,7 +247,7 @@ void iguana_RTvout_create(struct iguana_info *coin,int64_t polarity,struct iguan void iguana_RTspend_create(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_RTtxid *RTptr,struct iguana_block *block,int64_t polarity,uint8_t *script,int32_t scriptlen,bits256 txid,int32_t vini,bits256 prev_hash,int32_t prev_vout) { struct iguana_RTspend *spend; struct iguana_RTtxid *spentRTptr; struct iguana_RTunspent *unspent=0; char str[65],str2[65],coinaddr[64]; uint8_t addrtype,rmd160[20],spendscript[IGUANA_MAXSCRIPTSIZE]; uint32_t unspentind; int32_t spendlen,height; uint64_t RTspent,value; struct iguana_outpoint spentpt; - printf("RTspend %s vini.%d spend.(%s/v%d) %lld\n",bits256_str(str,txid),vini,bits256_str(str2,prev_hash),prev_vout,(long long)polarity); + //printf("RTspend %s vini.%d spend.(%s/v%d) %lld\n",bits256_str(str,txid),vini,bits256_str(str2,prev_hash),prev_vout,(long long)polarity); if ( vini == 0 && bits256_nonz(prev_hash) == 0 && prev_vout < 0 ) return; //fprintf(stderr,"-"); diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 1d14f872d..c6ca8e22b 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1083,7 +1083,7 @@ int32_t iguana_bundlehashadd(struct iguana_info *coin,struct iguana_bundle *bp,i void iguana_bundle_set(struct iguana_info *coin,struct iguana_block *block,int32_t height) { - int32_t hdrsi,bundlei; struct iguana_bundle *bp; + int32_t hdrsi,bundlei; struct iguana_bundle *bp; char str[65]; if ( block->height < 0 || block->height == height ) { hdrsi = (height / coin->chain->bundlesize); @@ -1096,7 +1096,7 @@ void iguana_bundle_set(struct iguana_info *coin,struct iguana_block *block,int32 bp->speculative[bundlei] = block->RO.hash2; //char str[65]; printf("SET %s ht.%d in [%d:%d]\n",bits256_str(str,block->RO.hash2),height,hdrsi,bundlei); } //else printf("iguana_bundle_set: no bundle at [%d]\n",hdrsi); - } else printf("iguana_bundle_set: mismatch ht.%d vs %d\n",block->height,height); + } else printf("iguana_bundle_set: %s mismatch ht.%d vs %d\n",bits256_str(str,block->RO.hash2),block->height,height); } void iguana_hwmchain_set(struct iguana_info *coin,struct iguana_block *block,int32_t height)