Browse Source

iguana_merkle needs 3x men

pull/4/head
jl777 6 years ago
parent
commit
593f9a7075
  1. 2
      src/komodo_ccdata.h

2
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<MoMdepth; i++)
{
if ( (pindex= komodo_chainactive(height - i)) != 0 )

Loading…
Cancel
Save