Browse Source

test

etomic
jl777 8 years ago
parent
commit
6b9408cf35
  1. 6
      iguana/dpow/dpow_network.c
  2. 4
      iguana/iguana_notary.c

6
iguana/dpow/dpow_network.c

@ -1210,7 +1210,7 @@ int32_t dpow_nanomsg_update(struct supernet_info *myinfo)
{ {
if ( size > 0 ) if ( size > 0 )
{ {
fprintf(stderr,"%d ",size); //fprintf(stderr,"%d ",size);
num++; num++;
if ( np->version0 == (DPOW_VERSION & 0xff) && np->version1 == ((DPOW_VERSION >> 8) & 0xff) ) if ( np->version0 == (DPOW_VERSION & 0xff) && np->version1 == ((DPOW_VERSION >> 8) & 0xff) )
{ {
@ -1262,7 +1262,7 @@ int32_t dpow_nanomsg_update(struct supernet_info *myinfo)
{ {
if ( (size= nn_recv(myinfo->dexsock,&dexp,NN_MSG,0)) > 0 ) if ( (size= nn_recv(myinfo->dexsock,&dexp,NN_MSG,0)) > 0 )
{ {
fprintf(stderr,"%d ",size); //fprintf(stderr,"%d ",size);
num++; num++;
if ( dex_packetcheck(myinfo,dexp,size) == 0 ) if ( dex_packetcheck(myinfo,dexp,size) == 0 )
{ {
@ -1280,7 +1280,7 @@ int32_t dpow_nanomsg_update(struct supernet_info *myinfo)
if ( (size= nn_recv(myinfo->repsock,&dexp,NN_MSG,0)) > 0 ) if ( (size= nn_recv(myinfo->repsock,&dexp,NN_MSG,0)) > 0 )
{ {
num++; num++;
fprintf(stderr,"%d ",size); //fprintf(stderr,"%d ",size);
//printf("REP got %d\n",size); //printf("REP got %d\n",size);
if ( (retstr= dex_response(&broadcastflag,myinfo,dexp)) != 0 ) if ( (retstr= dex_response(&broadcastflag,myinfo,dexp)) != 0 )
{ {

4
iguana/iguana_notary.c

@ -143,11 +143,11 @@ void dpow_destupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t h
void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp) void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp)
{ {
int32_t i,height,num; uint32_t blocktime; bits256 blockhash; struct iguana_info *src,*dest; int32_t i,height,num; uint32_t blocktime; bits256 blockhash; struct iguana_info *src,*dest;
for (i=0; i<100; i++) for (i=0; i<3; i++)
{ {
if ( (num= dpow_nanomsg_update(myinfo)) <= 0 ) if ( (num= dpow_nanomsg_update(myinfo)) <= 0 )
break; break;
fprintf(stderr,"%d ",num); //fprintf(stderr,"%d ",num);
} }
src = iguana_coinfind(dp->symbol); src = iguana_coinfind(dp->symbol);
dest = iguana_coinfind(dp->dest); dest = iguana_coinfind(dp->dest);

Loading…
Cancel
Save