jl777 7 years ago
parent
commit
d72d318473
  1. 6
      iguana/exchanges/LP_nativeDEX.c

6
iguana/exchanges/LP_nativeDEX.c

@ -432,7 +432,7 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int
continue; continue;
if ( time(NULL) > coin->lastmonitor+60 ) if ( time(NULL) > coin->lastmonitor+60 )
{ {
portable_mutex_lock(&coin->addrmutex); //portable_mutex_lock(&coin->addrmutex);
HASH_ITER(hh,coin->addresses,ap,atmp) HASH_ITER(hh,coin->addresses,ap,atmp)
{ {
if ( coin->electrum == 0 ) if ( coin->electrum == 0 )
@ -447,13 +447,13 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int
} }
} }
} }
else if ( 0 ) else
{ {
if ( (retjson= electrum_address_listunspent(coin->symbol,coin->electrum,&retjson,ap->coinaddr)) != 0 ) if ( (retjson= electrum_address_listunspent(coin->symbol,coin->electrum,&retjson,ap->coinaddr)) != 0 )
free_json(retjson); free_json(retjson);
} }
} }
portable_mutex_unlock(&coin->addrmutex); //portable_mutex_unlock(&coin->addrmutex);
coin->lastmonitor = (uint32_t)time(NULL); coin->lastmonitor = (uint32_t)time(NULL);
} }
if ( coin->electrum != 0 ) if ( coin->electrum != 0 )

Loading…
Cancel
Save