Browse Source

Extern QUERY waiting time

beta
jl777 7 years ago
parent
commit
a859d30f10
  1. 1
      iguana/exchanges/LP_nativeDEX.c
  2. 4
      iguana/exchanges/LP_ordermatch.c
  3. 2
      iguana/exchanges/LP_utxos.c

1
iguana/exchanges/LP_nativeDEX.c

@ -19,6 +19,7 @@
// LP_nativeDEX.c
// marketmaker
//
// SPV at tx level
// new features:
// stats, fix pricearray
// sign packets

4
iguana/exchanges/LP_ordermatch.c

@ -394,7 +394,7 @@ double LP_query(void *ctx,char *myipaddr,int32_t mypubsock,char *method,struct L
sleep(3);
LP_broadcast_message(LP_mypubsock,qp->srccoin,qp->destcoin,zero,msg);
} else LP_broadcast_message(LP_mypubsock,qp->srccoin,qp->destcoin,qp->srchash,msg);
for (i=0; i<30; i++)
for (i=0; i<20; i++)
{
if ( (price= LP_pricecache(qp,qp->srccoin,qp->destcoin,qp->txid,qp->vout)) > SMALLVAL )
{
@ -404,7 +404,7 @@ double LP_query(void *ctx,char *myipaddr,int32_t mypubsock,char *method,struct L
break;
}
}
usleep(250000);
sleep(1);
}
return(price);
}

2
iguana/exchanges/LP_utxos.c

@ -619,7 +619,7 @@ int32_t LP_privkey_init(int32_t mypubsock,struct iguana_info *coin,bits256 mypri
}
portable_mutex_unlock(&LP_UTXOmutex);
total += value;
} else printf("scriptmismatch.(%s) vs %s\n",script,jprint(item,0));
} // else printf("scriptmismatch.(%s) vs %s\n",script,jprint(item,0));
} //else printf("nothing near i.%d\n",i);
} else break;
}

Loading…
Cancel
Save