Browse Source

Test

etomic
jl777 7 years ago
parent
commit
b322b16f4c
  1. 2
      iguana/exchanges/LP_socket.c
  2. 2
      iguana/exchanges/LP_utxos.c

2
iguana/exchanges/LP_socket.c

@ -447,7 +447,7 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON
{
cJSON *retjson=0; struct iguana_info *coin = LP_coinfind(symbol);
//printf("electrum listunspent last.(%s lag %d)\n",coin->lastunspent,(int32_t)(time(NULL) - coin->unspenttime));
if ( strcmp(coin->lastunspent,addr) != 0 || time(NULL) > coin->unspenttime+10 )
//if ( strcmp(coin->lastunspent,addr) != 0 || time(NULL) > coin->unspenttime+10 )
{
if ( (retjson= electrum_strarg(symbol,ep,retjsonp,"blockchain.address.listunspent",addr,ELECTRUM_TIMEOUT)) != 0 )
{

2
iguana/exchanges/LP_utxos.c

@ -788,7 +788,7 @@ cJSON *LP_inventory(char *symbol,int32_t iambob)
{
if ( utxo->T.spentflag == 0 )
utxo->T.spentflag = (uint32_t)time(NULL);
printf("ineligible %.8f %.8f\n",dstr(val),dstr(val2));
printf("%s %s ineligible %.8f %.8f\n",utxo->coin,bits256_str(str,u.txid),dstr(val),dstr(val2));
continue;
}
if ( iambob != 0 )

Loading…
Cancel
Save