Browse Source

Test

etomic
jl777 8 years ago
parent
commit
31edaeb794
  1. 4
      basilisk/jumblr.c
  2. 3
      iguana/iguana_notary.c

4
basilisk/jumblr.c

@ -202,7 +202,7 @@ int64_t jumblr_balance(struct supernet_info *myinfo,struct iguana_info *coin,cha
{
if ( (retstr= jumblr_listunspent(myinfo,coin,addr)) != 0 )
{
printf("jumblr.(%s)\n",retstr);
printf("jumblr.[%s].(%s)\n",coin->symbol,retstr);
if ( (retjson= cJSON_Parse(retstr)) != 0 )
{
if ( (n= cJSON_GetArraySize(retjson)) > 0 )
@ -215,7 +215,7 @@ int64_t jumblr_balance(struct supernet_info *myinfo,struct iguana_info *coin,cha
}
else if ( (retstr= dex_getbalance(myinfo,coin,0,0,coin->symbol,addr)) != 0 )
{
//printf("retstr.(%s)\n",retstr);
printf("DEX retstr.(%s)\n",retstr);
if ( (retjson= cJSON_Parse(retstr)) != 0 )
{
balance = jdouble(retjson,"balance") * SATOSHIDEN;

3
iguana/iguana_notary.c

@ -865,6 +865,7 @@ TWO_STRINGS(dex,getbalance,symbol,address)
char url[512],*retstr; cJSON *retjson; uint64_t val;
if ( myinfo->DEXEXPLORER != 0 )
{
printf("DEXEXPLORER\n");
if ( symbol != 0 && address != 0 && (coin= iguana_coinfind(symbol)) != 0 && coin->DEXEXPLORER != 0 )
return(jprint(kmd_getbalance(myinfo,coin,address),1));
if ( coin != 0 )
@ -909,7 +910,7 @@ TWO_STRINGS(dex,getbalance,symbol,address)
jdelete(retjson,"unconfirmed_received");
jaddnum(retjson,"unconfirmed_received",dstr(val));
}
//printf("(%s) -> (%s)\n",retstr,jprint(retjson,0));
printf("blocktrail.(%s) -> (%s)\n",retstr,jprint(retjson,0));
free(retstr);
retstr = jprint(retjson,1);
}

Loading…
Cancel
Save