Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
9a2306f60f
  1. 2
      iguana/iguana_instantdex.c
  2. 1
      iguana/swaps/iguana_BTCswap.c

2
iguana/iguana_instantdex.c

@ -150,7 +150,7 @@ char *instantdex_sendcmd(struct supernet_info *myinfo,struct instantdex_offer *o
reqstr = jprint(argjson,0);
slen = (int32_t)(strlen(reqstr) + 1);
datalen = (int32_t)slen + extralen + olen;
msg = calloc(1,datalen);
msg = calloc(1,datalen + sizeof(*msg));
for (i=0; i<sizeof(msg->cmd); i++)
if ( (msg->cmd[i]= cmdstr[i]) == 0 )
break;

1
iguana/swaps/iguana_BTCswap.c

@ -571,6 +571,7 @@ char *instantdex_btcoffer(struct supernet_info *myinfo,struct exchange_info *exc
if ( instantdex_pubkeyargs(swap,newjson,777+2,myinfo->persistent_priv,orderhash,0x02+isbob) != 777+2 )
{
printf("error from pubkeyargs\n");
free(swap);
return(clonestr("{\"error\":\"highly unlikely run of 02 pubkeys\"}"));
}
if ( A->offer.price64 != 0 )

Loading…
Cancel
Save