diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index b37b9f01e..bede356f6 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/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 ) { diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index b0da0da76..206e4e66a 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/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 {