|
|
@ -130,7 +130,7 @@ void dpow_send(struct supernet_info *myinfo,struct dpow_info *dp,struct dpow_blo |
|
|
|
np->bestmask = dpow_maskmin(bp->recvmask,bp,&np->bestk); |
|
|
|
np->senderind = bp->myind; |
|
|
|
memcpy(np->ipbits,myinfo->dpowipbits,myinfo->numdpowipbits * sizeof(*myinfo->dpowipbits)); |
|
|
|
//printf("dpow_send.(%d) size.%d numipbits.%d\n",datalen,size,np->numipbits);
|
|
|
|
printf("dpow_send.(%d) size.%d numipbits.%d\n",datalen,size,np->numipbits); |
|
|
|
np->srcutxo = bp->notaries[bp->myind].ratifysrcutxo; |
|
|
|
np->srcvout = bp->notaries[bp->myind].ratifysrcvout; |
|
|
|
np->destutxo = bp->notaries[bp->myind].ratifydestutxo; |
|
|
@ -212,7 +212,7 @@ void dpow_nanomsg_update(struct supernet_info *myinfo) |
|
|
|
} |
|
|
|
if ( dp != 0 && crc32 == np->crc32 && (firstz= dpow_crc32find(myinfo,dp,crc32,np->channel)) >= 0 ) |
|
|
|
{ |
|
|
|
//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);
|
|
|
|
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); |
|
|
|
else if ( dpow_datahandler(myinfo,dp,np->senderind,np->bestk,np->bestmask,np->recvmask,np->channel,np->height,np->packet,np->datalen,np->destutxo,np->destvout,np->srcutxo,np->srcvout,np->ratifysiglens,np->ratifysigs) >= 0 ) |
|
|
|