jl777 8 years ago
parent
commit
e1e9520227
  1. 2
      iguana/dPoW.h
  2. 3
      iguana/iguana_notary.c

2
iguana/dPoW.h

@ -16,6 +16,8 @@
#ifndef INCLUDE_DPOW_H
#define INCLUDE_DPOW_H
#define DPOW_M(bp) (3) // (((bp)->numnotaries >> 1) + 1)
#define DPOW_UTXOSIZE 10000
#define DPOW_FIFOSIZE 64

3
iguana/iguana_notary.c

@ -28,7 +28,6 @@
#include "notaries.h"
#define CHECKSIG 0xac
#define DPOW_M(bp) (2) // (((bp)->numnotaries >> 1) + 1)
int32_t dpow_opreturnscript(uint8_t *script,uint8_t *opret,int32_t opretlen)
{
@ -1041,7 +1040,7 @@ void dpow_srcupdate(struct supernet_info *myinfo,struct dpow_info *dp,int32_t he
checkpoint = dp->srcfifo[dp->srcconfirms];
printf("%s srcupdate ht.%d destupdated.%u nonz.%d %s\n",dp->symbol,height,dp->destupdated,bits256_nonz(checkpoint.blockhash.hash),bits256_str(str,dp->last.blockhash.hash));
dpow_fifoupdate(myinfo,dp->srcfifo,dp->last);
if ( dp->destupdated != 0 && bits256_nonz(checkpoint.blockhash.hash) != 0 )
if ( dp->destupdated != 0 && bits256_nonz(checkpoint.blockhash.hash) != 0 && (checkpoint.blockhash.height % 10) == 0 )
{
ptrs = calloc(1,sizeof(void *)*2 + sizeof(struct dpow_checkpoint));
ptrs[0] = (void *)myinfo;

Loading…
Cancel
Save