|
|
@ -365,7 +365,6 @@ void dpow_nanomsg_update(struct supernet_info *myinfo) |
|
|
|
if ( np->datalen == (size - sizeof(*np)) ) |
|
|
|
{ |
|
|
|
crc32 = calc_crc32(0,np->packet,np->datalen); |
|
|
|
dpow_ipbitsadd(myinfo,np->ipbits,np->numipbits,np->senderind); |
|
|
|
dp = 0; |
|
|
|
for (i=0; i<myinfo->numdpows; i++) |
|
|
|
{ |
|
|
@ -377,6 +376,7 @@ void dpow_nanomsg_update(struct supernet_info *myinfo) |
|
|
|
} |
|
|
|
if ( dp != 0 && crc32 == np->crc32 )//&& (firstz= dpow_crc32find(myinfo,dp,crc32,np->channel)) >= 0 )
|
|
|
|
{ |
|
|
|
dpow_ipbitsadd(myinfo,np->ipbits,np->numipbits,np->senderind); |
|
|
|
//char str[65]; printf("%s RECV ht.%d ch.%08x (%d) crc32.%08x:%08x datalen.%d:%d firstz.%d\n",bits256_str(str,np->srchash),np->height,np->channel,size,np->crc32,crc32,np->datalen,(int32_t)(size - sizeof(*np)),firstz);
|
|
|
|
if ( i == myinfo->numdpows ) |
|
|
|
printf("received nnpacket for (%s)\n",np->symbol); |
|
|
|