Browse Source

Test

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

1
iguana/exchanges/LP_nativeDEX.c

@ -23,6 +23,7 @@
// bot progress
// swap started event for bot
// bot status 1600% ?
// BCH signing
// dPoW security -> 4: KMD notarized, 5: BTC notarized, after next notary elections
// bigendian architectures need to use little endian for sighash calcs

4
iguana/exchanges/LP_socket.c

@ -427,12 +427,12 @@ cJSON *electrum_submit(char *symbol,struct electrum_info *ep,cJSON **retjsonp,ch
sitem->expiration = timeout;
sitem->DL.type = ep->stratumid++;
sitem->retptrp = (void **)retjsonp;*/
//portable_mutex_lock(&ep->mutex);
portable_mutex_lock(&ep->mutex);
//queue_enqueue("sendQ",&ep->sendQ,&sitem->DL);
expiration = (uint32_t)time(NULL) + timeout + 1;
while ( *retjsonp == 0 && time(NULL) <= expiration )
usleep(5000);
//portable_mutex_unlock(&ep->mutex);
portable_mutex_unlock(&ep->mutex);
if ( *retjsonp == 0 || jobj(*retjsonp,"error") != 0 )
{
if ( ++ep->numerrors >= LP_ELECTRUM_MAXERRORS )

Loading…
Cancel
Save