Browse Source

Test

etomic
jl777 7 years ago
parent
commit
c941ed0b9b
  1. 1
      iguana/exchanges/LP_scan.c
  2. 2
      iguana/exchanges/LP_utxos.c

1
iguana/exchanges/LP_scan.c

@ -127,6 +127,7 @@ int32_t LP_transactioninit(struct iguana_info *coin,bits256 txid,int32_t iter)
vouts = jarray(&numvouts,txobj,"vout");
if ( iter == 0 && vouts != 0 && (tx= LP_transactionadd(coin,txid,height,numvouts,numvins)) != 0 )
{
printf("create txid numvouts.%d numvins.%d\n",numvouts,numvins);
for (i=0; i<numvouts; i++)
{
vout = jitem(vouts,i);

2
iguana/exchanges/LP_utxos.c

@ -780,7 +780,7 @@ cJSON *LP_inventory(char *symbol,int32_t iambob)
HASH_ITER(hh,LP_utxoinfos[iambob],utxo,tmp)
{
char str[65];
printf("iambob.%d iterate %s\n",iambob,bits256_str(str,LP_mypub25519));
//printf("iambob.%d iterate %s\n",iambob,bits256_str(str,LP_mypub25519));
if ( LP_isunspent(utxo) != 0 && strcmp(symbol,utxo->coin) == 0 && utxo->iambob == iambob && LP_ismine(utxo) > 0 )
{
u = (iambob != 0) ? utxo->deposit : utxo->fee;

Loading…
Cancel
Save