From cd6e94c6ee57ebf6471d4343eac4d51fd3f24d09 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 31 Oct 2016 15:14:06 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index a42572117..bf5a32f29 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -383,7 +383,7 @@ void dpow_statemachinestart(void *ptr) { void **ptrs = ptr; struct supernet_info *myinfo; struct dpow_info *dp; struct dpow_checkpoint checkpoint; - int32_t i,numratified,kmdheight,myind = -1; uint8_t pubkeys[64][33]; cJSON *ratified,*item; struct iguana_info *src,*dest; char *jsonstr,*handle,*hexstr,str[65],str2[65],srcaddr[64],destaddr[64]; bits256 zero,srchash; struct dpow_block *bp; struct dpow_entry *ep = 0; uint32_t duration,minsigs,starttime; + int32_t i,j,numratified,kmdheight,myind = -1; uint8_t pubkeys[64][33]; cJSON *ratified,*item; struct iguana_info *src,*dest; char *jsonstr,*handle,*hexstr,str[65],str2[65],srcaddr[64],destaddr[64]; bits256 zero,srchash; struct dpow_block *bp; struct dpow_entry *ep = 0; uint32_t duration,minsigs,starttime; memset(&zero,0,sizeof(zero)); myinfo = ptrs[0]; dp = ptrs[1]; @@ -457,6 +457,9 @@ void dpow_statemachinestart(void *ptr) bp->numnotaries = komodo_notaries(pubkeys,kmdheight); for (i=0; inumnotaries; i++) { + for (j=0; j<33; j++) + printf("%02x",pubkeys[i][j]); + printf(" <= pubkey[%d]\n",i); memcpy(bp->notaries[i].pubkey,pubkeys[i],33); if ( memcmp(bp->notaries[i].pubkey,dp->minerkey33,33) == 0 ) {