From 593f9a707508289d73870a55dea6bda7b063dba7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 27 Apr 2018 13:29:25 +0300 Subject: [PATCH] iguana_merkle needs 3x men --- src/komodo_ccdata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_ccdata.h b/src/komodo_ccdata.h index 675420c94..70e601946 100644 --- a/src/komodo_ccdata.h +++ b/src/komodo_ccdata.h @@ -45,7 +45,7 @@ bits256 iguana_merkle(bits256 *tree,int32_t txn_count) uint256 komodo_calcMoM(int32_t height,int32_t MoMdepth) { static uint256 zero; bits256 MoM,*tree; CBlockIndex *pindex; int32_t i; - tree = (bits256 *)calloc(MoMdepth,sizeof(*tree)); + tree = (bits256 *)calloc(MoMdepth * 3,sizeof(*tree)); for (i=0; i