Browse Source

test

etomic
jl777 8 years ago
parent
commit
566eb3c9a9
  1. 7
      iguana/dpow/dpow_network.c
  2. 2
      iguana/dpow/dpow_rpc.c

7
iguana/dpow/dpow_network.c

@ -467,7 +467,7 @@ char *dex_response(int32_t *broadcastflagp,struct supernet_info *myinfo,struct d
dpow_randipbits(myinfo,coin,retjson);
retstr = jprint(retjson,1);
}
printf("DEX NOTARIES -> (%s)\n",retstr);
//printf("DEX NOTARIES -> (%s)\n",retstr);
}
} else printf("(%s) not active\n",dexreq.name);
if ( retstr == 0 )
@ -484,7 +484,7 @@ char *dex_reqsend(struct supernet_info *myinfo,char *handler,uint8_t *data,int32
{
if ( (retstrs[j]= _dex_reqsend(myinfo,handler,data,datalen)) != 0 )
{
//printf("j.%d of max.%d (%s)\n",j,max,retstrs[j]);
//printf("j.%d of max.%d M.%d (%s)\n",j,max,M,retstrs[j]);
if ( strncmp(retstrs[j],"{\"error\":\"null return\"}",strlen("{\"error\":\"null return\"}")) != 0 && strncmp(retstrs[j],"[]",strlen("[]")) != 0 && strcmp("0",retstrs[j]) != 0 )
{
if ( ++j == M )
@ -496,7 +496,10 @@ char *dex_reqsend(struct supernet_info *myinfo,char *handler,uint8_t *data,int32
//printf("automatic retry.%d of %d\n",i,max);
}
if ( j == 1 )
{
//printf("return.(%s)\n",retstrs[0]);
return(retstrs[0]);
}
else if ( j >= M )
{
origretstr0 = retstrs[0];

2
iguana/dpow/dpow_rpc.c

@ -84,7 +84,7 @@ int32_t komodo_notaries(char *symbol,uint8_t pubkeys[64][33],int32_t height)
}
}
}
printf("komodo_notaries returns.%d\n",num);
//printf("komodo_notaries returns.%d\n",num);
return(num);
}

Loading…
Cancel
Save