From 321165a41066a0831ecd22b2d855516c9ebb1fc7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 28 Mar 2018 00:02:53 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_include.h | 1 + iguana/exchanges/LP_utxo.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_include.h b/iguana/exchanges/LP_include.h index 9fb13a99b..8d75a6ad2 100644 --- a/iguana/exchanges/LP_include.h +++ b/iguana/exchanges/LP_include.h @@ -498,6 +498,7 @@ int32_t LP_numconfirms(char *symbol,char *coinaddr,bits256 txid,int32_t vout,int void LP_aliceid(uint32_t tradeid,uint64_t aliceid,char *event,uint32_t requestid,uint32_t quoteid); void LP_autoprices_update(char *method,char *base,double basevol,char *rel,double relvol); cJSON *LP_cache_transaction(struct iguana_info *coin,bits256 txid,uint8_t *serialized,int32_t len); +uint64_t LP_balance(uint64_t *valuep,int32_t iambob,char *symbol,char *coinaddr); cJSON *LP_transaction_fromdata(struct iguana_info *coin,bits256 txid,uint8_t *serialized,int32_t len); uint64_t LP_RTsmartbalance(struct iguana_info *coin); int32_t LP_getheight(int32_t *notarizedp,struct iguana_info *coin); diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index 8377554ca..f7f2643ea 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -690,7 +690,7 @@ cJSON *LP_address_balance(struct iguana_info *coin,char *coinaddr,int32_t electr } free_json(array); } - uint64_t balance2 = LP_balance(&balance2,0,coin->symbol,coin->coinaddr); + uint64_t balance2 = LP_balance(&balance2,0,coin->symbol,coin->smartaddr); printf("balance %.8f vs balance2 %.8f\n",dstr(balance),dstr(balance2)); } else