Browse Source

Test

etomic
jl777 7 years ago
parent
commit
4ffc93afdb
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_ordermatch.c

4
iguana/exchanges/LP_nativeDEX.c

@ -323,10 +323,10 @@ int32_t LP_utxos_sync(struct LP_peerinfo *peer)
{
if ( IAMLP == 0 && coin->inactive != 0 )//|| (coin->electrum != 0 && coin->obooktime == 0) )
continue;
//printf("UTXO sync %s -> %s\n",coin->symbol,peer->ipaddr);
total = 0;
if ( LP_listunspent_both(coin->symbol,coin->smartaddr) == 0 )
if ( (j= LP_listunspent_both(coin->symbol,coin->smartaddr)) == 0 )
continue;
printf("UTXO sync.%d %s -> %s\n",j,coin->symbol,peer->ipaddr);
if ( (array= LP_address_utxos(coin,coin->smartaddr,1)) != 0 )
{
if ( (n= cJSON_GetArraySize(array)) > 0 )

2
iguana/exchanges/LP_ordermatch.c

@ -724,7 +724,7 @@ char *LP_connectedalice(cJSON *argjson) // alice
int32_t LP_listunspent_both(char *symbol,char *coinaddr)
{
int32_t i,v,height,n=0; uint64_t value; bits256 txid; char buf[512]; cJSON *array,*item; struct iguana_info *coin = LP_coinfind(symbol);
if ( coin != 0 && (IAMLP == 0 && coin->inactive == 0) )
if ( coin != 0 )//&& (IAMLP != 0 || coin->inactive == 0) )
{
if ( coin->electrum != 0 || LP_address_ismine(symbol,coinaddr) <= 0 )
{

Loading…
Cancel
Save