diff --git a/src/crosschain.cpp b/src/crosschain.cpp index 3eb618bd7..94959544b 100644 --- a/src/crosschain.cpp +++ b/src/crosschain.cpp @@ -212,7 +212,8 @@ TxProof GetAssetchainProof(uint256 hash) // build merkle chain from blocks to MoM { std::vector leaves, tree; - for (int i=0; iMoMdepth; i++) { + uint32_t md = np->MoMdepth & 0xffff; // MoMdepth shares space with ccid + for (int i=0; inotarized_height - i]->hashMerkleRoot; leaves.push_back(mRoot); }