Browse Source

Test

etomic
jl777 8 years ago
parent
commit
bd37a195d0
  1. 2
      iguana/exchanges/LP_scan.c

2
iguana/exchanges/LP_scan.c

@ -173,6 +173,7 @@ int32_t LP_transactioninit(struct iguana_info *coin,bits256 txid)
{
if ( (addresses= jarray(&n,sobj,"addresses")) != 0 && n > 0 )
{
printf("%s\n",jprint(addresses,0));
if ( n > 1 )
printf("LP_transactioninit: txid.(%s) multiple addresses.[%s]\n",bits256_str(str,txid),jprint(addresses,0));
if ( (address= jstri(addresses,0)) != 0 && strlen(address) < sizeof(tx->outpoints[i].coinaddr) )
@ -297,6 +298,7 @@ cJSON *LP_snapshot(struct iguana_info *coin,int32_t height)
{
balance += tx->outpoints[i].value;
ap->balance += tx->outpoints[i].value;
printf("%s/%s %.8f\n",tx->outpoints[i].coinaddr,ap->coinaddr,dstr(ap->balance));
} else noaddr_balance += tx->outpoints[i].value;
}
}

Loading…
Cancel
Save