jl777 8 years ago
parent
commit
a87e968666
  1. 2
      iguana/dpow/dpow_rpc.c
  2. 2
      iguana/iguana_notary.c

2
iguana/dpow/dpow_rpc.c

@ -525,14 +525,12 @@ cJSON *dpow_withdraws_pending(struct dpow_info *dp)
tmp = 0;
while ( (pax= dp->PAX->hh.next) != 0 && pax != tmp )
{
printf("iter pax.%p (%p %p)\n",pax,pax->hh.next,pax->hh.prev);
if ( pax->marked == 0 )
jaddi(retjson,dpow_paxjson(pax));
tmp = pax;
pax = pax->hh.next;
}
pthread_mutex_unlock(&dp->mutex);
printf("pending.(%s)\n",jprint(retjson,0));
return(retjson);
}

2
iguana/iguana_notary.c

@ -285,11 +285,9 @@ STRING_ARG(dpow,pending,fiat)
for (i=0; fiat[i]!=0; i++)
base[i] = toupper(fiat[i]);
base[i] = 0;
printf("search %d dpows %s\n",myinfo->numdpows,base);
for (i=0; i<myinfo->numdpows; i++)
{
dp = &myinfo->DPOWS[i];
printf("i.%d (%s)\n",i,dp->symbol);
if ( strcmp(dp->symbol,base) == 0 )
return(jprint(dpow_withdraws_pending(dp),1));
else printf("mismatched i.%d %s\n",i,dp->symbol);

Loading…
Cancel
Save