diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index e9810ba40..41c2267f5 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/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 #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 ) { diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 0869399f2..e61e92913 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/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\"}")); } diff --git a/iguana/exchanges/LP_swap.c b/iguana/exchanges/LP_swap.c index 306cab38c..55341236f 100644 --- a/iguana/exchanges/LP_swap.c +++ b/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 )