Browse Source

Test

etomic
jl777 7 years ago
parent
commit
0fb43b5b7d
  1. 4
      iguana/exchanges/LP_utxo.c
  2. 2
      iguana/exchanges/LP_utxos.c

4
iguana/exchanges/LP_utxo.c

@ -253,7 +253,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",LP_getheight(coin) - up->U.height);
jaddnum(item,"confirmations",LP_getheight(coin) - up->U.height + 1);
jaddnum(item,"amount",dstr(up->U.value));
jaddstr(item,"scriptPubKey","");
}
@ -469,7 +469,7 @@ int32_t LP_unspents_array(struct iguana_info *coin,char *coinaddr,cJSON *array)
errs++;
}
if ( coin->height != 0 )
ht = LP_getheight(coin) - jint(txobj,"confirmations");
ht = LP_getheight(coin) - jint(txobj,"confirmations") + 1;
else ht = 0;
/*if ( ht != 0 && ht < height-2 )
{

2
iguana/exchanges/LP_utxos.c

@ -540,7 +540,7 @@ int32_t LP_privkey_init(int32_t mypubsock,struct iguana_info *coin,bits256 mypri
txid = jbits256(item,"txid");
vout = juint(item,"vout");
value = LP_value_extract(item,0);
height = LP_getheight(coin) - jint(item,"confirmations");
height = LP_getheight(coin) - jint(item,"confirmations") + 1;
}
else
{

Loading…
Cancel
Save