jl777 8 years ago
parent
commit
5c43b0d6c9
  1. 2
      iguana/dPoW.h
  2. 5
      iguana/dpow/dpow_fsm.c

2
iguana/dPoW.h

@ -22,7 +22,7 @@
#define DPOW_MINSIGS 7
//#define DPOW_M(bp) ((bp)->minsigs) // (((bp)->numnotaries >> 1) + 1)
#define DPOW_MODIND(bp,offset) (((((bp)->height / DPOW_CHECKPOINTFREQ) % (bp)->numnotaries) + (offset)) % (bp)->numnotaries)
#define DPOW_VERSION 0x0737
#define DPOW_VERSION 0x0747
#define DPOW_UTXOSIZE 10000
#define DPOW_MINOUTPUT 6000
#define DPOW_DURATION 300

5
iguana/dpow/dpow_fsm.c

@ -194,6 +194,11 @@ void dpow_statemachinestart(void *ptr)
bp->isratify = 1;
if ( (numratified= cJSON_GetArraySize(ratified)) > 0 )
{
if ( numratified > 64 )
{
fprintf(stderr,"cant ratify more than 64 notaries\n");
return;
}
for (i=0; i<numratified; i++)
{
item = jitem(ratified,i);

Loading…
Cancel
Save