|
@ -319,7 +319,7 @@ int32_t LP_utxos_sync(struct LP_peerinfo *peer) |
|
|
int32_t i,j,n=0,m,v,posted=0; bits256 txid; cJSON *array,*item,*item2,*array2,*array3; uint64_t total,total2,metric; struct iguana_info *coin,*ctmp; struct LP_address *ap; char *retstr,*retstr2,*coinaddr; |
|
|
int32_t i,j,n=0,m,v,posted=0; bits256 txid; cJSON *array,*item,*item2,*array2,*array3; uint64_t total,total2,metric; struct iguana_info *coin,*ctmp; struct LP_address *ap; char *retstr,*retstr2,*coinaddr; |
|
|
HASH_ITER(hh,LP_coins,coin,ctmp) |
|
|
HASH_ITER(hh,LP_coins,coin,ctmp) |
|
|
{ |
|
|
{ |
|
|
if ( coin->inactive != 0 || coin->obooktime == 0 ) |
|
|
if ( coin->inactive != 0 || (coin->electrum != 0 && coin->obooktime == 0) ) |
|
|
continue; |
|
|
continue; |
|
|
total = 0; |
|
|
total = 0; |
|
|
LP_listunspent_both(coin->symbol,coin->smartaddr); |
|
|
LP_listunspent_both(coin->symbol,coin->smartaddr); |
|
@ -478,8 +478,8 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int |
|
|
continue; |
|
|
continue; |
|
|
if ( coin->electrum != 0 ) |
|
|
if ( coin->electrum != 0 ) |
|
|
continue; |
|
|
continue; |
|
|
if ( coin->obooktime == 0 ) |
|
|
//if ( coin->obooktime == 0 )
|
|
|
continue; |
|
|
// continue;
|
|
|
if ( time(NULL) > coin->lastgetinfo+LP_GETINFO_INCR ) |
|
|
if ( time(NULL) > coin->lastgetinfo+LP_GETINFO_INCR ) |
|
|
{ |
|
|
{ |
|
|
if ( (height= LP_getheight(coin)) > coin->longestchain ) |
|
|
if ( (height= LP_getheight(coin)) > coin->longestchain ) |
|
|