Browse Source

Test

etomic
jl777 7 years ago
parent
commit
7432c82dc5
  1. 2
      iguana/exchanges/LP_transaction.c
  2. 7
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_transaction.c

@ -910,7 +910,7 @@ int32_t LP_vins_select(void *ctx,struct iguana_info *coin,int64_t *totalp,int64_
printf("have utxotxid but wasnt found up.%p\n",up);
if ( up == 0 )
{
value = LP_txvalue(coin->smartaddr,coin->symbol,utxotxid,utxovout);
value = LP_txvalue(0,coin->symbol,utxotxid,utxovout);
LP_address_utxoadd("withdraw",coin,coin->smartaddr,utxotxid,utxovout,value,1,-1);
printf("added after not finding\n");
}

7
iguana/exchanges/LP_utxo.c

@ -765,13 +765,12 @@ uint64_t LP_txvalue(char *coinaddr,char *symbol,bits256 txid,int32_t vout)
}
else if ( coin->electrum == 0 )
{
uint64_t value; char _coinaddr[64];
uint64_t value;
if ( (txobj= LP_gettxout(coin->symbol,coinaddr,txid,vout)) != 0 )
{
value = LP_value_extract(txobj,0);//SATOSHIDEN * (jdouble(txobj,"value") + jdouble(txobj,"interest"));
if ( coinaddr == 0 )
coinaddr = _coinaddr;
LP_destaddr(coinaddr,txobj);
if ( coinaddr != 0 )
LP_destaddr(coinaddr,txobj);
//printf("pruned node? LP_txvalue couldnt find %s tx %s, but gettxout %.8f\n",coin->symbol,bits256_str(str,txid),dstr(value));
if ( value != 0 )
{

Loading…
Cancel
Save