add print of MoMoM data each time it is called.

This commit is contained in:
blackjok3r
2018-09-19 14:51:41 +08:00
parent 3eef88c755
commit 1444ed4e2d
2 changed files with 6 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ uint256 CalculateProofRoot(const char* symbol, uint32_t targetCCid, int kmdHeigh
}
}
}
// Not enough own notarisations found to return determinate MoMoM
destNotarisationTxid = uint256();
moms.clear();
@@ -162,6 +162,8 @@ TxProof GetCrossChainProof(const uint256 txid, const char* targetSymbol, uint32_
if (MoMoM.IsNull())
throw std::runtime_error("No MoMs found");
printf("momom: %s\n", MoMoM.GetHex().data())
// Find index of source MoM in MoMoM
int nIndex;
for (nIndex=0; nIndex<moms.size(); nIndex++) {