From 906654e5d717f8f112cd11af0af6c8eb6cb49048 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 29 Jan 2017 10:39:14 +0200 Subject: [PATCH] test --- iguana/dpow/dpow_network.c | 9 ++++----- iguana/main.c | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 1d4192fee..b2be5c37e 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -188,9 +188,9 @@ int32_t signed_nn_recv(void **freeptrp,void *ctx,uint8_t notaries[64][33],int32_ printf(" pubkey[%d]\n",i); } } - for (i=0; i<33; i++) - printf("%02x",pubkey33[i]); - printf(" invalid pubkey33 n.%d\n",n); + //for (i=0; i<33; i++) + // printf("%02x",pubkey33[i]); + //printf(" invalid pubkey33 n.%d\n",n); } else printf("recoververify error nonce.%u packetlen.%d\n",sigpacket->nonce,sigpacket->packetlen); } else printf("hash mismatch or bad nonce.%u packetlen.%d\n",sigpacket->nonce,sigpacket->packetlen); } //else printf("recvbytes.%d mismatched packetlen.%d + %ld\n",recvbytes,sigpacket!=0?sigpacket->packetlen:-1,sizeof(*sigpacket)); @@ -626,7 +626,6 @@ char *dex_response(int32_t *broadcastflagp,struct supernet_info *myinfo,struct d char *dex_reqsend(struct supernet_info *myinfo,char *handler,uint8_t *data,int32_t datalen,int32_t M,char *field) { char *retstrs[64],*origretstr0 = 0; cJSON *retjson; int32_t err,i,j,max = myinfo->numdexipbits; -M = 1; memset(retstrs,0,sizeof(retstrs)); for (i=j=0; i<=max; i++) { @@ -1858,7 +1857,7 @@ int32_t dpow_nanomsg_update(struct supernet_info *myinfo) if ( (size= nn_recv(myinfo->repsock,&dexp,NN_MSG,0)) > 0 ) { num++; - //printf("REP got %d crc.%08x\n",size,calc_crc32(0,(void *)dexp,size)); + printf("REP got %d crc.%08x\n",size,calc_crc32(0,(void *)dexp,size)); if ( (retstr= dex_response(&broadcastflag,myinfo,dexp)) != 0 ) { signed_nn_send(myinfo->ctx,myinfo->persistent_priv,myinfo->repsock,retstr,(int32_t)strlen(retstr)+1); diff --git a/iguana/main.c b/iguana/main.c index 72fa3be49..e9a29dbbd 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -1670,7 +1670,7 @@ void iguana_main(void *arg) komodo_REVS_merge(batchstr,batchstr2); } sprintf(fname,"batch%d.txt",batchid); - if ( (batchstr= OS_filestr(&batchsize,fname)) != 0 ) + if ( 0 && (batchstr= OS_filestr(&batchsize,fname)) != 0 ) { if ( (batchjson= cJSON_Parse(batchstr)) != 0 ) {