Browse Source

Test

etomic
jl777 7 years ago
parent
commit
c1654d3710
  1. 4
      iguana/exchanges/LP_transaction.c
  2. 2
      iguana/exchanges/LP_utxo.c

4
iguana/exchanges/LP_transaction.c

@ -647,7 +647,11 @@ char *basilisk_swap_bobtxspend(int32_t dustcombine,bits256 *signedtxidp,uint64_t
memset(items,0,sizeof(items));
more = LP_dustcombine(items,dustcombine,coin);
if ( more != 0 )
{
printf("%s dustcombine.%d -> %.8f (%s) + (%s)\n",coin->symbol,dustcombine,dstr(more),items[0] != 0 ? jprint(items[0],0) : "",items[1] != 0 ? jprint(items[1],0) : "");
memset(items,0,sizeof(items));
more = 0 ;
}
value += more;
dustcombine = (items[0] != 0) + (items[1] != 0);
}

2
iguana/exchanges/LP_utxo.c

@ -970,8 +970,8 @@ uint64_t LP_dustcombine(cJSON *items[2],int32_t dustcombine,struct iguana_info *
struct LP_address *ap=0; struct LP_address_utxo *up,*tmp,*min0,*min1; cJSON *txobj;
if ( coin == 0 || coin->electrum != 0 || dustcombine <= 0 || dustcombine > 2 )
return(0);
return(0);
min1 = min0 = 0;
printf("LP_dustcombine\n");
if ( (ap= _LP_addressfind(coin,coin->smartaddr)) != 0 )
{
DL_FOREACH_SAFE(ap->utxos,up,tmp)

Loading…
Cancel
Save