From 3e89f834aac6abe1c1c6b67654c2971ffd8ab6d9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 13 Oct 2016 21:46:47 -0300 Subject: [PATCH] test --- iguana/iguana_notary.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 30ad2cad2..477d820e1 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -679,7 +679,7 @@ void dpow_rawtxsign(struct supernet_info *myinfo,struct iguana_info *coin,struct { vins = jduplicate(jobj(txobj,"vin")); free_json(txobj); - printf("generated vins.(%s)\n",jprint(vins,0)); + //printf("generated vins.(%s)\n",jprint(vins,0)); } free(rawtx2); } @@ -694,7 +694,7 @@ void dpow_rawtxsign(struct supernet_info *myinfo,struct iguana_info *coin,struct if ( ++k >= bp->numnotaries ) k = 0; item = jitem(vins,i); - printf("(%s) i.%d of %d, (%d) k.%d bestmask.%llx\n",jprint(item,0),i,n,(bp->height % bp->numnotaries) % bp->numnotaries,k,(long long)bestmask); + //printf("(%s) i.%d of %d, (%d) k.%d bestmask.%llx\n",jprint(item,0),i,n,(bp->height % bp->numnotaries) % bp->numnotaries,k,(long long)bestmask); if ( bits256_nonz(bp->notaries[k].prev_hash) == 0 ) { bp->notaries[k].prev_hash = jbits256(item,"txid"); @@ -708,9 +708,8 @@ void dpow_rawtxsign(struct supernet_info *myinfo,struct iguana_info *coin,struct if ( i < n-1 ) k++; } - if ( k == bestk ) - printf("extracted uxto for bestk.%d %llx\n",bestk,(long long)bestmask); - else printf("extracted uxto k.%d != bestk.%d\n",k,bestk); + if ( k != bestk ) + printf("extracted uxto k.%d != bestk.%d\n",k,bestk); } } m = 0;