jl777 7 years ago
parent
commit
94804f2a63
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 6
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_ordermatch.c

@ -401,7 +401,7 @@ int32_t LP_connectstartbob(void *ctx,int32_t pubsock,struct LP_utxoinfo *utxo,cJ
return(-1);
}
privkey = LP_privkey(utxo->coinaddr,coin->taddr);
if ( bits256_nonz(privkey) != 0 && qp->quotetime >= qp->timestamp-3 && qp->quotetime <= utxo->T.swappending && bits256_cmp(LP_mypub25519,qp->srchash) == 0 )
if ( bits256_nonz(privkey) != 0 && bits256_cmp(LP_mypub25519,qp->srchash) == 0 ) //qp->quotetime >= qp->timestamp-3 && qp->quotetime <= utxo->T.swappending &&
{
if ( (pair= LP_nanobind(ctx,pairstr)) >= 0 )
{

6
iguana/exchanges/LP_utxo.c

@ -193,7 +193,7 @@ cJSON *LP_address_item(struct iguana_info *coin,struct LP_address_utxo *up,int32
{
jaddbits256(item,"txid",up->U.txid);
jaddnum(item,"vout",up->U.vout);
jaddnum(item,"confirmations",coin->height - up->U.height);
jaddnum(item,"confirmations",LP_getheight(coin) - up->U.height);
jaddnum(item,"amount",dstr(up->U.value));
jaddstr(item,"scriptPubKey","");
}
@ -281,11 +281,11 @@ char *LP_postedutxos(cJSON *argjson)
errs++;
}
if ( coin->height != 0 )
ht = coin->height - jint(txobj,"confirmations");
ht = LP_getheight(coin) - jint(txobj,"confirmations");
else ht = 0;
if ( ht != 0 && ht < height-2 )
{
printf("REJECT %s %s/v%d ht.%d vs %d (%s)\n",symbol,bits256_str(str,txid),v,ht,height,jprint(item,0));
printf("REJECT %s %s/v%d ht.%d vs %d confs.%d (%s)\n",symbol,bits256_str(str,txid),v,ht,height,jint(txobj,"confirmations"),jprint(item,0));
errs++;
}
free_json(txobj);

Loading…
Cancel
Save