Browse Source

Test

etomic
jl777 8 years ago
parent
commit
880f82174e
  1. 1
      iguana/exchanges/LP_transaction.c

1
iguana/exchanges/LP_transaction.c

@ -67,6 +67,7 @@ uint64_t LP_txvalue(char *symbol,bits256 txid,int32_t vout)
uint64_t value = 0; cJSON *txobj,*vouts,*utxoobj; int32_t numvouts; uint64_t value = 0; cJSON *txobj,*vouts,*utxoobj; int32_t numvouts;
if ( (txobj= LP_gettx(symbol,txid)) != 0 ) if ( (txobj= LP_gettx(symbol,txid)) != 0 )
{ {
printf("%s txobj.(%s)\n",symbol,jprint(txobj,0));
if ( (vouts= jarray(&numvouts,txobj,"vout")) != 0 && vout < numvouts ) if ( (vouts= jarray(&numvouts,txobj,"vout")) != 0 && vout < numvouts )
{ {
utxoobj = jitem(vouts,vout); utxoobj = jitem(vouts,vout);

Loading…
Cancel
Save