Browse Source

test

etomic
jl777 8 years ago
parent
commit
906654e5d7
  1. 9
      iguana/dpow/dpow_network.c
  2. 2
      iguana/main.c

9
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);

2
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 )
{

Loading…
Cancel
Save