jl777 8 years ago
parent
commit
5b60c92390
  1. 4
      iguana/iguana_peers.c
  2. 2
      iguana/iguana_tx.c

4
iguana/iguana_peers.c

@ -447,14 +447,14 @@ int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port)
return(-1); return(-1);
} }
} }
//#ifdef __APPLE__ #ifdef __APPLE__
timeout.tv_sec = 0; timeout.tv_sec = 0;
timeout.tv_usec = 30000; timeout.tv_usec = 30000;
setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,(void *)&timeout,sizeof(timeout)); setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,(void *)&timeout,sizeof(timeout));
timeout.tv_sec = 0; timeout.tv_sec = 0;
timeout.tv_usec = 10000; timeout.tv_usec = 10000;
setsockopt(sock,SOL_SOCKET,SO_SNDTIMEO,(void *)&timeout,sizeof(timeout)); setsockopt(sock,SOL_SOCKET,SO_SNDTIMEO,(void *)&timeout,sizeof(timeout));
//#endif #endif
return(sock); return(sock);
} }

2
iguana/iguana_tx.c

@ -341,7 +341,7 @@ int32_t iguana_peerblockrequest(struct supernet_info *myinfo,struct iguana_info
//printf("validated.[%d:%d] len.%d\n",bp->hdrsi,bundlei,total); //printf("validated.[%d:%d] len.%d\n",bp->hdrsi,bundlei,total);
return(total); return(total);
} }
} else printf("iguana_peerblockrequest: %s error merkle cmp tx.[%d] for ht.%d\n",coin->symbol,i,bp->bundleheight+bundlei); } else printf("iguana_peerblockrequest: %s error %s merkle cmp tx.[%d] for ht.%d\n",coin->symbol,bits256_str(str,block->RO.hash2),i,bp->bundleheight+bundlei);
} else printf("iguana_peerblockrequest: error merkle verify tx.[%d] for ht.%d\n",i,bp->bundleheight+bundlei); } else printf("iguana_peerblockrequest: error merkle verify tx.[%d] for ht.%d\n",i,bp->bundleheight+bundlei);
} }
else else

Loading…
Cancel
Save