Browse Source

Test

etomic
jl777 8 years ago
parent
commit
b9c86dfaea
  1. 2
      iguana/exchanges/LP_commands.c

2
iguana/exchanges/LP_commands.c

@ -233,9 +233,9 @@ cJSON *LP_tradecandidates(struct LP_utxoinfo *myutxo,char *base)
if ( (price= LP_price(base,myutxo->coin)) == .0 ) if ( (price= LP_price(base,myutxo->coin)) == .0 )
return(0); return(0);
estimatedbase = myutxo->satoshis / price; estimatedbase = myutxo->satoshis / price;
printf("%s -> %s price %.8f mysatoshis %llu estimated base %llu\n",base,myutxo->coin,price,(long long)myutxo->satoshis,(long long)estimatedbase);
if ( estimatedbase <= 0 ) if ( estimatedbase <= 0 )
return(0); return(0);
//printf("%s -> %s price %.8f mysatoshis %llu estimated base %llu\n",base,myutxo->coin,price,(long long)myutxo->satoshis,(long long)estimatedbase);
HASH_ITER(hh,LP_peerinfos,peer,tmp) HASH_ITER(hh,LP_peerinfos,peer,tmp)
{ {
if ( (utxostr= issue_LP_clientgetutxos(peer->ipaddr,peer->port,base,100)) != 0 ) if ( (utxostr= issue_LP_clientgetutxos(peer->ipaddr,peer->port,base,100)) != 0 )

Loading…
Cancel
Save