jl777 8 years ago
parent
commit
23769a5986
  1. 4
      iguana/dPoW.h
  2. 4
      iguana/iguana_notary.c

4
iguana/dPoW.h

@ -16,8 +16,8 @@
#ifndef INCLUDE_DPOW_H
#define INCLUDE_DPOW_H
#define DPOW_M(bp) (5) // (((bp)->numnotaries >> 1) + 1)
#define DPOW_VERSION 0x0102
#define DPOW_M(bp) (2) // (((bp)->numnotaries >> 1) + 1)
#define DPOW_VERSION 0x0103
#define DPOW_UTXOSIZE 10000
#define DPOW_FIFOSIZE 64

4
iguana/iguana_notary.c

@ -98,8 +98,8 @@ void dpow_nanomsg_update(struct supernet_info *myinfo)
if ( size >= 0 )
{
crc32 = calc_crc32(0,np->packet,np->datalen);
printf("NANORECV ht.%d channel.%08x (%d) crc32.%08x:%08x datalen.%d:%d\n",np->height,np->channel,size,np->crc32,crc32,np->datalen,(size - np->size));
if ( crc32 == np->crc32 && np->datalen == (size - np->size) )
printf("NANORECV ht.%d channel.%08x (%d) crc32.%08x:%08x datalen.%d:%d\n",np->height,np->channel,size,np->crc32,crc32,np->datalen,(int32_t)(size - sizeof(*np)));
if ( crc32 == np->crc32 && np->datalen == (size - sizeof(*np)) )
dpow_datahandler(myinfo,0,np->channel,np->height,np->packet,size - np->size);
if ( np != 0 )
nn_freemsg(np);

Loading…
Cancel
Save