jl777 7 years ago
parent
commit
164b5c285c
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_ordermatch.c
  3. 1
      iguana/exchanges/LP_prices.c
  4. 1
      iguana/exchanges/LP_rpc.c
  5. 1
      iguana/exchanges/LP_scan.c

2
iguana/exchanges/LP_nativeDEX.c

@ -322,7 +322,7 @@ int32_t LP_utxos_sync(struct LP_peerinfo *peer)
if ( coin->inactive != 0 || coin->obooktime == 0 )
continue;
total = 0;
printf("from utxos_sync\n");
//printf("from utxos_sync\n");
LP_listunspent_both(coin->symbol,coin->smartaddr);
if ( (array= LP_address_utxos(coin,coin->smartaddr,1)) != 0 )
{

2
iguana/exchanges/LP_ordermatch.c

@ -695,7 +695,7 @@ int32_t LP_listunspent_both(char *symbol,char *coinaddr)
//printf("issue path electrum.%p\n",coin->electrum);
//if ( coin->electrum != 0 && (array= electrum_address_gethistory(symbol,coin->electrum,&array,coinaddr)) != 0 )
// free_json(array);
printf("listunspent_both\n");
//printf("listunspent_both\n");
n = LP_listunspent_issue(symbol,coinaddr);
}
else

1
iguana/exchanges/LP_prices.c

@ -224,6 +224,7 @@ char *LP_pubkey_trustset(bits256 pubkey,uint32_t trustval)
uint64_t LP_unspents_metric(struct iguana_info *coin,char *coinaddr)
{
cJSON *array,*item; int32_t i,n; uint64_t metric=0,total;
printf("unspents metric\n");
LP_listunspent_both(coin->symbol,coinaddr);
if ( (array= LP_address_utxos(coin,coinaddr,1)) != 0 )
{

1
iguana/exchanges/LP_rpc.c

@ -481,7 +481,6 @@ cJSON *LP_listunspent(char *symbol,char *coinaddr)
int32_t LP_listunspent_issue(char *symbol,char *coinaddr)
{
struct iguana_info *coin; int32_t n = 0; cJSON *retjson=0; char *retstr=0,destip[64]; uint16_t destport;
printf("LP_listunspent_issue.%s %s\n",symbol,coinaddr);
if ( symbol == 0 || symbol[0] == 0 )
return(0);
if ( (coin= LP_coinfind(symbol)) != 0 )

1
iguana/exchanges/LP_scan.c

@ -481,7 +481,6 @@ int32_t LP_waitmempool(char *symbol,char *coinaddr,bits256 txid,int32_t vout,int
}
free(array);
}
printf("from waitmempool\n");
LP_listunspent_issue(coin->symbol,coinaddr);
struct LP_address_utxo *up;
if ( (up= LP_address_utxofind(coin,coinaddr,txid,vout)) != 0 )

Loading…
Cancel
Save