Browse Source

test

etomic
jl777 8 years ago
parent
commit
129e809a03
  1. 2
      iguana/dpow/dpow_network.c
  2. 3
      iguana/dpow/dpow_rpc.c

2
iguana/dpow/dpow_network.c

@ -442,7 +442,7 @@ char *dex_response(int32_t *broadcastflagp,struct supernet_info *myinfo,struct d
else if ( dexreq.func == 'N' )
{
uint8_t pubkeys[64][33]; char str[128]; int32_t numnotaries; cJSON *array,*item;
if ( (numnotaries= komodo_notaries("KMD",pubkeys,-1)) > 0 && numnotaries < 64 )
if ( (numnotaries= komodo_notaries("KMD",pubkeys,-1)) > 0 && numnotaries <= 64 )
{
retjson = cJSON_CreateObject();
array = cJSON_CreateArray();

3
iguana/dpow/dpow_rpc.c

@ -61,7 +61,7 @@ int32_t komodo_notaries(char *symbol,uint8_t pubkeys[64][33],int32_t height)
{
if ( (retjson= cJSON_Parse(retstr)) != 0 )
{
printf("%s\n",retstr);
//printf("%s\n",retstr);
if ( (array= jarray(&num,retjson,"notaries")) != 0 )
{
if ( num > 64 )
@ -84,6 +84,7 @@ printf("%s\n",retstr);
}
}
}
printf("komodo_notaries returns.%d\n",num);
return(num);
}

Loading…
Cancel
Save