Browse Source

test

olddPoW
jl777 8 years ago
parent
commit
a331aba588
  1. 2
      iguana/dpow/dpow_fsm.c
  2. 3
      iguana/dpow/dpow_rpc.c

2
iguana/dpow/dpow_fsm.c

@ -469,7 +469,7 @@ void dpow_statemachinestart(void *ptr)
printf("minerkey33-> ");
for (i=0; i<33; i++)
printf("%02x",dp->minerkey33[i]);
printf(" statemachinestart this node %s %s is not official notary\n",srcaddr,destaddr);
printf(" statemachinestart this node %s %s is not official notary numnotaries.%d\n",srcaddr,destaddr,bp->numnotaries);
free(ptr);
return;
}

3
iguana/dpow/dpow_rpc.c

@ -25,7 +25,7 @@ int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t kmdheight)
{
if ( (retjson= cJSON_Parse(retstr)) != 0 )
{
printf("%s\n",retstr);
//printf("%s\n",retstr);
if ( (result= jobj(retjson,"result")) != 0 && (array= jarray(&num,result,"notaries")) != 0 )
{
if ( num > 64 )
@ -38,6 +38,7 @@ int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t kmdheight)
item = jitem(array,i);
if ( (pubkeystr= jstr(item,"pubkey")) != 0 && strlen(pubkeystr) == 66 )
decode_hex(pubkeys[i],33,pubkeystr);
else printf("error i.%d of %d (%s)\n",i,num,pubkeystr!=0?pubkeystr:"");
}
}
free_json(retjson);

Loading…
Cancel
Save