Browse Source

Test

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

2
iguana/exchanges/LP_scan.c

@ -609,7 +609,7 @@ uint64_t LP_txvalue(char *coinaddr,char *symbol,bits256 txid,int32_t vout)
return(tx->outpoints[vout].value + tx->outpoints[vout].interest);
}
} else printf("LP_txvalue vout.%d >= tx->numvouts.%d\n",vout,tx->numvouts);
} else printf("LP_txvalue couldnt find tx %s\n",bits256_str(str,txid));
} else printf("LP_txvalue couldnt find %s tx %s\n",coin->symbol,bits256_str(str,txid));
return(0);
}

2
iguana/exchanges/LP_utxos.c

@ -806,7 +806,7 @@ cJSON *LP_inventory(char *symbol,int32_t iambob)
LP_utxo_clientpublish(utxo);
jaddi(array,LP_inventoryjson(cJSON_CreateObject(),utxo));
}
else if ( LP_ismine(utxo) > 0 )
else if ( LP_ismine(utxo) > 0 && strcmp(symbol,utxo->coin) == 0 )
printf("skip %s %s %d %d %d %d\n",utxo->coin,bits256_str(str,utxo->payment.txid),LP_isunspent(utxo) != 0,strcmp(symbol,utxo->coin) == 0,utxo->iambob == iambob,LP_ismine(utxo) > 0);
}
return(array);

Loading…
Cancel
Save