fix MoMdepth in crosschain.cpp

This commit is contained in:
Scott Sadler
2018-06-03 13:22:00 -03:00
parent 8fef386be9
commit 7776d00b9a

View File

@@ -212,7 +212,8 @@ TxProof GetAssetchainProof(uint256 hash)
// build merkle chain from blocks to MoM
{
std::vector<uint256> leaves, tree;
for (int i=0; i<np->MoMdepth; i++) {
uint32_t md = np->MoMdepth & 0xffff; // MoMdepth shares space with ccid
for (int i=0; i<md; i++) {
uint256 mRoot = chainActive[np->notarized_height - i]->hashMerkleRoot;
leaves.push_back(mRoot);
}