From 7776d00b9a508a1f195ffa7702173a21f165ebe9 Mon Sep 17 00:00:00 2001 From: Scott Sadler Date: Sun, 3 Jun 2018 13:22:00 -0300 Subject: [PATCH] fix MoMdepth in crosschain.cpp --- src/crosschain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }