Browse Source

-print

patch-4
jl777 7 years ago
parent
commit
9d9eaeb66c
  1. 2
      iguana/exchanges/LP_instantdex.c
  2. 4
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_instantdex.c

@ -641,7 +641,7 @@ int64_t LP_dynamictrust(int64_t credits,bits256 pubkey,int64_t kmdvalue)
} }
printf("REJECT: %s instantdex_credits %.8f vs (%.8f + current %.8f)\n",coinaddr,dstr(credits),dstr(swaps_kmdvalue),dstr(kmdvalue)); printf("REJECT: %s instantdex_credits %.8f vs (%.8f + current %.8f)\n",coinaddr,dstr(credits),dstr(swaps_kmdvalue),dstr(kmdvalue));
} }
if ( 1 && credits != 0 ) if ( 0 && credits != 0 )
printf("%s %s othercredits %.8f debits %.8f + %.8f -> %.8f\n",coin->symbol,coinaddr,dstr(credits),dstr(swaps_kmdvalue),dstr(kmdvalue),dstr(credits - (swaps_kmdvalue+kmdvalue))); printf("%s %s othercredits %.8f debits %.8f + %.8f -> %.8f\n",coin->symbol,coinaddr,dstr(credits),dstr(swaps_kmdvalue),dstr(kmdvalue),dstr(credits - (swaps_kmdvalue+kmdvalue)));
return(credits - (swaps_kmdvalue+kmdvalue)); return(credits - (swaps_kmdvalue+kmdvalue));
} }

4
iguana/exchanges/LP_rpc.c

@ -260,7 +260,7 @@ cJSON *LP_gettxout(char *symbol,char *coinaddr,bits256 txid,int32_t vout)
{ {
if ( tx->outpoints[vout].spendheight > 0 ) if ( tx->outpoints[vout].spendheight > 0 )
{ {
fprintf(stderr,"LP_gettxout (%s) tx->outpoints[vout].spendheight > 0\n",coinaddr); //fprintf(stderr,"LP_gettxout (%s) tx->outpoints[vout].spendheight > 0\n",coinaddr);
return(0); return(0);
} }
//return(LP_gettxout_json(txid,vout,tx->height,tx->outpoints[vout].coinaddr,tx->outpoints[vout].value)); //return(LP_gettxout_json(txid,vout,tx->height,tx->outpoints[vout].coinaddr,tx->outpoints[vout].value));
@ -285,7 +285,7 @@ cJSON *LP_gettxout(char *symbol,char *coinaddr,bits256 txid,int32_t vout)
{ {
if ( up->spendheight > 0 ) if ( up->spendheight > 0 )
{ {
fprintf(stderr,"LP_gettxout (%s) up->spendheight > 0\n",coinaddr); //fprintf(stderr,"LP_gettxout (%s) up->spendheight > 0\n",coinaddr);
return(0); return(0);
} }
//return(LP_gettxout_json(txid,vout,up->U.height,coinaddr,up->U.value)); //return(LP_gettxout_json(txid,vout,up->U.height,coinaddr,up->U.value));

Loading…
Cancel
Save