Browse Source

Test

etomic
jl777 7 years ago
parent
commit
3ecfc1abc6
  1. 1
      iguana/exchanges/LP_include.h
  2. 8
      iguana/exchanges/LP_socket.c

1
iguana/exchanges/LP_include.h

@ -425,6 +425,7 @@ cJSON *LP_gettxout(char *symbol,char *coinaddr,bits256 txid,int32_t vout);
void LP_postutxos(char *symbol,char *coinaddr);
int32_t LP_listunspent_both(char *symbol,char *coinaddr,int32_t fullflag);
uint16_t LP_randpeer(char *destip);
char *LP_unspents_filestr(char *symbol,char *addr);
cJSON *bitcoin_data2json(uint8_t taddr,uint8_t pubtype,uint8_t p2shtype,uint8_t isPoS,int32_t height,bits256 *txidp,struct iguana_msgtx *msgtx,uint8_t *extraspace,int32_t extralen,uint8_t *serialized,int32_t len,cJSON *vins,int32_t suppress_pubkeys,int32_t zcash);
//int32_t LP_butxo_findeither(bits256 txid,int32_t vout);
cJSON *LP_listunspent(char *symbol,char *coinaddr);

8
iguana/exchanges/LP_socket.c

@ -622,7 +622,13 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON
}
}
if ( retjson == 0 )
retjson = LP_address_utxos(coin,addr,1);
{
if ( strcmp(addr,coin->smartaddr) == 0 && (retstr= LP_unspents_filestr(symbol,coin->smartaddr)) != 0 )
{
retjson = LP_address_utxos(coin,addr,1);
free(retstr);
} else retjson = LP_address_utxos(coin,addr,1);
}
return(retjson);
}

Loading…
Cancel
Save