From 78ba8b64642d56738251263ae2f59a38a231a8aa Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 17 Mar 2018 01:18:25 +0200 Subject: [PATCH] Test --- iguana/dpow/dpow_fsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index 65898e260..18b2fd6ff 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -253,7 +253,7 @@ bits256 dpow_calcMoM(uint32_t *MoMdepthp,struct supernet_info *myinfo,struct igu free_json(blockjson); if ( bits256_nonz(merkle) != 0 ) { - merkles = calloc(maxdepth+1,sizeof(*merkles)); + merkles = calloc(3*maxdepth+1,sizeof(*merkles)); merkles[MoMdepth++] = merkle; ht = height - MoMdepth; while ( MoMdepth < maxdepth && ht >= breakht && ht > 0 ) @@ -262,7 +262,7 @@ bits256 dpow_calcMoM(uint32_t *MoMdepthp,struct supernet_info *myinfo,struct igu blockhash = dpow_getblockhash(myinfo,coin,ht); if ( (blockjson= dpow_getblock(myinfo,coin,blockhash)) != 0 ) { - if ( (0) && breakht == 0 && dpow_hasnotarization(¬ht,myinfo,coin,blockjson,ht) > 0 ) + if ( breakht == 0 && dpow_hasnotarization(¬ht,myinfo,coin,blockjson,ht) > 0 ) { breakht = notht; //free_json(blockjson);