From a331aba5888af7932ccce4273ff7651c66f75bf8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 31 Oct 2016 14:50:41 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 2 +- iguana/dpow/dpow_rpc.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 410e2735a..a42572117 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/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; } diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 0e265454a..95f39b3e2 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/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);