jl777 7 years ago
parent
commit
a5ec865a41
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_ordermatch.c
  3. 1
      iguana/exchanges/LP_swap.c

4
iguana/exchanges/LP_nativeDEX.c

@ -23,10 +23,10 @@
// bittrex balancing
// detect port conflicts on enable
// stats
// dynamic txid2 allocation
// unduplicated bugs:
// swap cancel should cleanly cancel
// check for completed one being spent, prevent autxo reuse, add extra hash to keypair25519, sign, spv check
#include <stdio.h>
#include "LP_include.h"
@ -514,7 +514,7 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int
LP_getestimatedrate(coin);
break;
}
if ( (counter % 6000) == 60 )
if ( 0 && (counter % 6000) == 60 )
{
if ( (retstr= basilisk_swapentry(0,0)) != 0 )
{

2
iguana/exchanges/LP_ordermatch.c

@ -713,7 +713,6 @@ char *LP_connectedalice(cJSON *argjson) // alice
//G.LP_pendingswaps--;
return(clonestr("{\"error\":\"no price set\"}"));
}
// SPV validate bobs
printf("%s/%s bid %.8f ask %.8f\n",Q.srccoin,Q.destcoin,bid,ask);
price = bid;
if ( (coin= LP_coinfind(Q.destcoin)) == 0 )
@ -1066,7 +1065,6 @@ char *LP_autobuy(void *ctx,char *myipaddr,int32_t mypubsock,char *base,char *rel
if ( (qprice= LP_quote_validate(autxo,0,&Q,0)) <= SMALLVAL )
{
printf("quote validate error %.0f\n",qprice);
exit(-1);
continue;
//return(clonestr("{\"error\":\"quote validation error\"}"));
}

1
iguana/exchanges/LP_swap.c

@ -665,7 +665,6 @@ int32_t LP_swapwait(uint32_t requestid,uint32_t quoteid,int32_t duration,int32_t
sleep(10);
if ( sleeptime < divisor*60 )
sleeptime = divisor * 60;
//check for completed one being spent, prevent autxo reuse, add extra hash to keypair25519, sign, spv check
while ( time(NULL) < expiration )
{
if ( (retstr= basilisk_swapentry(requestid,quoteid)) != 0 )

Loading…
Cancel
Save