From 5c43b0d6c9817c7539b400083df300a279775852 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 17 Nov 2016 17:49:40 -0300 Subject: [PATCH] test --- iguana/dPoW.h | 2 +- iguana/dpow/dpow_fsm.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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