jl777 8 years ago
parent
commit
b13496766b
  1. 1
      iguana/exchanges/LP_ordermatch.c
  2. 3
      iguana/exchanges/LP_rpc.c

1
iguana/exchanges/LP_ordermatch.c

@ -733,6 +733,7 @@ int32_t LP_listunspent_both(char *symbol,char *coinaddr)
}
else
{
//printf("my coin\n");
sprintf(buf,"[1, 99999999, [\"%s\"]]",coinaddr);
if ( (array= bitcoin_json(coin,"listunspent",buf)) != 0 )
{

3
iguana/exchanges/LP_rpc.c

@ -484,7 +484,7 @@ int32_t LP_listunspent_issue(char *symbol,char *coinaddr)
{
retstr = issue_LP_listunspent(destip,destport,symbol,coinaddr);
retjson = cJSON_Parse(retstr);
}
} else printf("LP_listunspent_issue couldnt get a random peer?\n");
if ( retjson != 0 )
{
n = cJSON_GetArraySize(retjson);
@ -492,6 +492,7 @@ int32_t LP_listunspent_issue(char *symbol,char *coinaddr)
LP_postutxos(symbol,coinaddr); // might be good to not saturate
}
}
printf("issue listunspent %s (%s)\n",coinaddr,jprint(retjson,0));
if ( retjson != 0 )
free_json(retjson);
if ( retstr != 0 )

Loading…
Cancel
Save