Merge commit '1cbe9c3'

This commit is contained in:
Luke Dashjr
2014-05-26 06:33:46 +00:00

View File

@@ -154,6 +154,13 @@ bool blkmk_build_merkle_branches(blktemplate_t * const tmpl)
return false;
branchcount = blkmk_flsl(tmpl->txncount);
if (!branchcount)
{
tmpl->_mrklbranchcount = 0;
tmpl->_mrklbranch = NULL;
return true;
}
branches = malloc(branchcount * sizeof(*branches));
size_t hashcount = tmpl->txncount + 1;