Truncate MoMdepth

This commit is contained in:
jl777
2018-05-30 12:57:21 -11:00
parent b6e71fe96c
commit 1b9f98cd19
3 changed files with 4 additions and 3 deletions

View File

@@ -45,6 +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;
MoMdepth &= 0xffff;
if ( MoMdepth >= height )
return(zero);
tree = (bits256 *)calloc(MoMdepth * 3,sizeof(*tree));