jl777 7 years ago
parent
commit
8b2be4076d
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 4
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_ordermatch.c

@ -608,7 +608,7 @@ struct LP_utxoinfo *LP_bestutxo(double *ordermatchpricep,int64_t *bestsatoshisp,
vol = jdouble(item,"volume");
metric = price / bestprice;
printf("metric %f vol %f add pings, electrum cache\n",metric,vol);
// check utxos > 1 for pubkey
// check utxos > 1 for pubkey, SPV validate recv'ed
/*if ( (butxo= LP_utxofind(1,txid,vout)) != 0 && (long long)(vol*SATOSHIDEN) == butxo->S.satoshis && LP_isavailable(butxo) > 0 && LP_ismine(butxo) == 0 && butxo->T.bestflag == 0 )
{
printf("got butxo? %p\n",butxo);

4
iguana/exchanges/LP_utxo.c

@ -262,13 +262,13 @@ char *LP_postedutxos(cJSON *argjson)
value = LP_value_extract(txobj,0);
if ( value != val )
{
printf("REJECT %s %s/v%d value.%llu vs %llu\n",symbol,bits256_str(str,txid),v,(long long)value,(long long)val);
printf("REJECT %s %s/v%d value.%llu vs %llu (%s)\n",symbol,bits256_str(str,txid),v,(long long)value,(long long)val,jprint(item,0));
errs++;
}
ht = coin->height - jint(txobj,"confirmations");
if ( ht < height-2 )
{
printf("REJECT %s %s/v%d ht.%d vs %d\n",symbol,bits256_str(str,txid),v,ht,height);
printf("REJECT %s %s/v%d ht.%d vs %d (%s)\n",symbol,bits256_str(str,txid),v,ht,height,jprint(item,0));
errs++;
}
free_json(txobj);

Loading…
Cancel
Save