diff --git a/iguana/dPoW.h b/iguana/dPoW.h index 1cc62863c..121c9753a 100755 --- a/iguana/dPoW.h +++ b/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 diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index b85f9e26d..7b93d2893 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/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