This commit is contained in:
blackjok3r
2018-09-19 14:52:22 +08:00
parent 1444ed4e2d
commit 47656a74d0
2 changed files with 4 additions and 4 deletions

View File

@@ -79,8 +79,8 @@ bool Eval::ImportCoin(const std::vector<uint8_t> params, const CTransaction &imp
if (!GetProofRoot(proof.first, momom))
return Invalid("coudnt-load-momom");
printf("momom: %s\n", momom.GetHex().data())
printf("momom: %s\n", momom.GetHex().data());
target = proof.second.Exec(burnTx.GetHash());
if (momom != proof.second.Exec(burnTx.GetHash()))
return Invalid("momom-check-fail");

View File

@@ -162,8 +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())
printf("momom: %s\n", MoMoM.GetHex().data());
// Find index of source MoM in MoMoM
int nIndex;
for (nIndex=0; nIndex<moms.size(); nIndex++) {