Browse Source

Test

etomic
jl777 7 years ago
parent
commit
434c96cd41
  1. 4
      iguana/exchanges/LP_ordermatch.c
  2. 4
      iguana/exchanges/LP_socket.c
  3. 2
      iguana/exchanges/LP_utxos.c

4
iguana/exchanges/LP_ordermatch.c

@ -404,7 +404,7 @@ printf("found mini.%d %.8f for targetval %.8f -> targetval2 %.8f, ratio %.2f\n",
} else if ( targetval != 0 && mini >= 0 ) } else if ( targetval != 0 && mini >= 0 )
printf("targetval %.8f mini.%d\n",dstr(targetval),mini); printf("targetval %.8f mini.%d\n",dstr(targetval),mini);
} else printf("no %s utxos pass LP_address_utxo_ptrs filter\n",coinaddr); } else printf("no %s utxos pass LP_address_utxo_ptrs filter\n",coinaddr);
} else printf("couldnt find %s %s\n",coin->symbol,coinaddr); } else printf("address_myutxopair couldnt find %s %s\n",coin->symbol,coinaddr);
return(0); return(0);
} }
@ -812,7 +812,7 @@ int32_t LP_tradecommand(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,
return(retval); return(retval);
} }
price = ask; price = ask;
printf("MYPRICE %s/%s %.8f vs qprice %.8f\n",Q.srccoin,Q.destcoin,price,qprice); //printf("MYPRICE %s/%s %.8f vs qprice %.8f\n",Q.srccoin,Q.destcoin,price,qprice);
if ( LP_validSPV(Q.destcoin,Q.destaddr,Q.desttxid,Q.destvout) < 0 ) if ( LP_validSPV(Q.destcoin,Q.destaddr,Q.desttxid,Q.destvout) < 0 )
{ {
printf("%s dest %s failed SPV check\n",Q.destcoin,bits256_str(str,Q.desttxid)); printf("%s dest %s failed SPV check\n",Q.destcoin,bits256_str(str,Q.desttxid));

4
iguana/exchanges/LP_socket.c

@ -578,8 +578,8 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON
cJSON *retjson=0; char *retstr; struct LP_address *ap; struct iguana_info *coin; int32_t updatedflag,height,usecache=1; cJSON *retjson=0; char *retstr; struct LP_address *ap; struct iguana_info *coin; int32_t updatedflag,height,usecache=1;
if ( (coin= LP_coinfind(symbol)) == 0 ) if ( (coin= LP_coinfind(symbol)) == 0 )
return(0); return(0);
//if ( strcmp(addr,INSTANTDEX_KMD) == 0 ) if ( strcmp(addr,INSTANTDEX_KMD) == 0 )
// return(cJSON_Parse("[]")); return(cJSON_Parse("[]"));
if ( ep == 0 || ep->heightp == 0 ) if ( ep == 0 || ep->heightp == 0 )
height = coin->longestchain; height = coin->longestchain;
else height = *(ep->heightp); else height = *(ep->heightp);

2
iguana/exchanges/LP_utxos.c

@ -516,7 +516,7 @@ cJSON *LP_inventory(char *symbol)
{ {
//if ( utxo->T.spentflag == 0 ) //if ( utxo->T.spentflag == 0 )
// utxo->T.spentflag = (uint32_t)time(NULL); // utxo->T.spentflag = (uint32_t)time(NULL);
printf("%s %s ineligible %.8f %.8f\n",utxo->coin,bits256_str(str,u.txid),dstr(val),dstr(val2)); //printf("%s %s ineligible %.8f %.8f\n",utxo->coin,bits256_str(str,u.txid),dstr(val),dstr(val2));
continue; continue;
} }
//if ( iambob != 0 ) //if ( iambob != 0 )

Loading…
Cancel
Save