Browse Source

Test

etomic
jl777 7 years ago
parent
commit
4da0f241b0
  1. 5
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_socket.c

5
iguana/exchanges/LP_nativeDEX.c

@ -514,7 +514,8 @@ void LP_coinsloop(void *_coins)
{
if ( (backupep= ep->prev) == 0 )
backupep = ep;
printf("electrum %s\n",coin->symbol);
// skip cLP_address MNZ bXcSsYBiVKtTzYErqxvma4UsojZTEf5L6H
//printf("electrum %s\n",coin->symbol);
if ( (ap= LP_addressfind(coin,coin->smartaddr)) != 0 )
{
if ( (retjson= electrum_address_listunspent(coin->symbol,ep,&retjson,ap->coinaddr,1)) != 0 )
@ -522,7 +523,7 @@ void LP_coinsloop(void *_coins)
}
HASH_ITER(hh,coin->addresses,ap,atmp)
{
printf("call unspent %s\n",ap->coinaddr);
//printf("call unspent %s\n",ap->coinaddr);
if ( (retjson= electrum_address_listunspent(coin->symbol,ep,&retjson,ap->coinaddr,1)) != 0 )
free_json(retjson);
}

2
iguana/exchanges/LP_socket.c

@ -596,7 +596,7 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON
{
if ( jobj(retjson,"error") == 0 && is_cJSON_Array(retjson) != 0 )
{
//if ( 0 && electrumflag > 1 )
if ( 0 && electrumflag > 1 )
printf("%s.%d u.%u/%d t.%ld %s LISTUNSPENT.(%d)\n",coin->symbol,height,ap->unspenttime,ap->unspentheight,time(NULL),addr,(int32_t)strlen(jprint(retjson,0)));
updatedflag = 0;
if ( electrum_process_array(coin,ep,addr,retjson,electrumflag) != 0 )

Loading…
Cancel
Save