jl777 7 years ago
parent
commit
7b91d763e7
  1. 4
      iguana/exchanges/LP_ordermatch.c
  2. 1
      iguana/exchanges/LP_socket.c

4
iguana/exchanges/LP_ordermatch.c

@ -730,8 +730,8 @@ int32_t LP_listunspent_both(char *symbol,char *coinaddr)
if ( coin->electrum != 0 || LP_address_ismine(symbol,coinaddr) <= 0 ) if ( coin->electrum != 0 || LP_address_ismine(symbol,coinaddr) <= 0 )
{ {
//printf("issue path electrum.%p\n",coin->electrum); //printf("issue path electrum.%p\n",coin->electrum);
if ( coin->electrum != 0 && (array= electrum_address_gethistory(symbol,coin->electrum,&array,coinaddr)) != 0 ) //if ( coin->electrum != 0 && (array= electrum_address_gethistory(symbol,coin->electrum,&array,coinaddr)) != 0 )
free_json(array); // free_json(array);
n = LP_listunspent_issue(symbol,coinaddr); n = LP_listunspent_issue(symbol,coinaddr);
} }
else else

1
iguana/exchanges/LP_socket.c

@ -518,6 +518,7 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON
{ {
if ( (retjson= electrum_strarg(symbol,ep,retjsonp,"blockchain.address.listunspent",addr,ELECTRUM_TIMEOUT)) != 0 ) if ( (retjson= electrum_strarg(symbol,ep,retjsonp,"blockchain.address.listunspent",addr,ELECTRUM_TIMEOUT)) != 0 )
{ {
printf("LISTUNSPENT.(%s)\n",jprint(retjson,0));
if ( electrum_process_array(coin,ep,addr,retjson) != 0 ) if ( electrum_process_array(coin,ep,addr,retjson) != 0 )
LP_postutxos(coin->symbol,addr); LP_postutxos(coin->symbol,addr);
safecopy(coin->lastunspent,addr,sizeof(coin->lastunspent)); safecopy(coin->lastunspent,addr,sizeof(coin->lastunspent));

Loading…
Cancel
Save