|
|
@ -358,6 +358,10 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int |
|
|
|
HASH_ITER(hh,LP_coins,coin,ctmp) // firstrefht,firstscanht,lastscanht
|
|
|
|
{ |
|
|
|
int32_t height; bits256 zero; cJSON *array; int32_t n; |
|
|
|
if ( coin->inactive != 0 ) |
|
|
|
continue; |
|
|
|
if ( (rand() % 100) == 0 ) |
|
|
|
{ |
|
|
|
LP_listunspent_both(coin->symbol,coin->smartaddr); |
|
|
|
if ( (array= LP_address_utxos(coin,coin->smartaddr,1)) != 0 ) |
|
|
|
{ |
|
|
@ -366,7 +370,7 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int |
|
|
|
printf("[%s]\n\n",jprint(array,0)); |
|
|
|
HASH_ITER(hh,LP_peerinfos,peer,tmp) |
|
|
|
{ |
|
|
|
if ( peer->errors < LP_MAXPEER_ERRORS ) |
|
|
|
if ( strcmp(peer->ipaddr,LP_myipaddr) != 0 && peer->errors < LP_MAXPEER_ERRORS ) |
|
|
|
{ |
|
|
|
if ( (retstr= issue_LP_listunspent(peer->ipaddr,peer->port,coin->symbol,coin->smartaddr)) != 0 ) |
|
|
|
{ |
|
|
@ -378,8 +382,7 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int |
|
|
|
} |
|
|
|
free_json(array); |
|
|
|
} |
|
|
|
if ( coin->inactive != 0 ) |
|
|
|
continue; |
|
|
|
} |
|
|
|
if ( coin->electrum != 0 ) |
|
|
|
continue; |
|
|
|
memset(zero.bytes,0,sizeof(zero)); |
|
|
|