jl777 8 years ago
parent
commit
535746044e
  1. 3
      iguana/dpow/dpow_fsm.c
  2. 2
      iguana/dpow/dpow_network.c

3
iguana/dpow/dpow_fsm.c

@ -110,7 +110,8 @@ int32_t dpow_datahandler(struct supernet_info *myinfo,uint32_t channel,uint32_t
bits256 txid,commit,srchash; struct dpow_block *bp = 0; uint32_t flag = 0; int32_t src_or_dest,senderind,i,myind = -1; char str[65],str2[65]; struct dpow_sigentry dsig; struct dpow_entry *ep; struct dpow_coinentry *cp; struct dpow_utxoentry U; struct iguana_info *coin;
if ( (bp= dpow_heightfind(myinfo,height)) == 0 )
{
printf("couldnt find height.%d\n",height);
if ( (rand() % 100) == 0 )
printf("couldnt find height.%d\n",height);
return(-1);
}
dpow_notaryfind(myinfo,bp,&myind,myinfo->DPOW.minerkey33);

2
iguana/dpow/dpow_network.c

@ -114,7 +114,7 @@ void dpow_nanomsg_update(struct supernet_info *myinfo)
crc32 = calc_crc32(0,np->packet,np->datalen);
if ( crc32 == np->crc32 && (firstz= dpow_crc32find(myinfo,crc32,np->channel)) >= 0 )
{
printf("NANORECV ht.%d channel.%08x (%d) crc32.%08x:%08x datalen.%d:%d firstz.%d\n",np->height,np->channel,size,np->crc32,crc32,np->datalen,(int32_t)(size - sizeof(*np)),firstz);
//printf("NANORECV ht.%d channel.%08x (%d) crc32.%08x:%08x datalen.%d:%d firstz.%d\n",np->height,np->channel,size,np->crc32,crc32,np->datalen,(int32_t)(size - sizeof(*np)),firstz);
if ( dpow_datahandler(myinfo,np->channel,np->height,np->packet,np->datalen) >= 0 )
myinfo->DPOW.crcs[firstz] = crc32;
}

Loading…
Cancel
Save