diff --git a/iguana/iguana_init.c b/iguana/iguana_init.c index bf4e3b1ff..d5ffce0db 100755 --- a/iguana/iguana_init.c +++ b/iguana/iguana_init.c @@ -252,7 +252,7 @@ void iguana_parseline(struct iguana_info *coin,int32_t iter,FILE *fp) if ( strcmp(checkstr,line+k+1 + 64 + 1) == 0 ) { init_hexbytes_noT(checkstr,hash2.bytes,sizeof(hash2)); - char str[65],str2[65]; printf(">>>> bundle.%d got (%s)/(%s) allhash.(%s)\n",height,bits256_str(str,hash2),checkstr,bits256_str(str2,allhash)); + //char str[65],str2[65]; printf(">>>> bundle.%d got (%s)/(%s) allhash.(%s)\n",height,bits256_str(str,hash2),checkstr,bits256_str(str2,allhash)); if ( (bp= iguana_bundlecreate(coin,&bundlei,height,hash2,allhash,0)) != 0 ) { bp->bundleheight = height; diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index e46eeddd1..19ecbe0c4 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -404,7 +404,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int break; usleep(100); } - if ( 1 && counter > 0 ) + if ( 0 && counter > 0 ) printf("ITERATE bundle.%d h.%d n.%d r.%d s.%d finished.%d issued.%d\n",bp->bundleheight,bp->numhashes,bp->n,bp->numrecv,bp->numsaved,bp->emitfinish,counter); if ( bp->emitfinish == 0 ) { diff --git a/iguana/swaps/iguana_BTCswap.c b/iguana/swaps/iguana_BTCswap.c index 865191500..b6242414d 100755 --- a/iguana/swaps/iguana_BTCswap.c +++ b/iguana/swaps/iguana_BTCswap.c @@ -113,6 +113,11 @@ char *instantdex_feetx(struct supernet_info *myinfo,bits256 *txidp,struct instan else printf("error signing %s feetx numinputs.%d\n",A->offer.myside != 0 ? "BOB" : "ALICE",spend->numinputs); free(spend); } + else + { + printf("no unspents to spend\n"); + feetx = clonestr("deadbeefdeadbeef"); + } } return(feetx); } @@ -490,7 +495,7 @@ cJSON *instantdex_parseargjson(struct supernet_info *myinfo,struct exchange_info if ( juint(argjson,"verified") != 0 ) swap->otherverifiedcut = 1; jaddnum(newjson,"verified",swap->otherverifiedcut); - if ( instantdex_pubkeyargs(swap,newjson,2 + deckflag*777,myinfo->persistent_priv,swap->orderhash,0x02+swap->isbob) == 2 ) + if ( instantdex_pubkeyargs(swap,newjson,2 + deckflag*777,myinfo->persistent_priv,swap->orderhash,0x02+swap->isbob) == 2 + deckflag*777 ) instantdex_getpubs(swap,argjson,newjson); else printf("ERROR: couldnt generate pubkeys\n"); }