Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
3a5e0c86c2
  1. 2
      iguana/iguana_init.c
  2. 2
      iguana/iguana_recv.c
  3. 7
      iguana/swaps/iguana_BTCswap.c

2
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;

2
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 )
{

7
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");
}

Loading…
Cancel
Save