add print of MoMoM data each time it is called.
This commit is contained in:
@@ -79,6 +79,8 @@ bool Eval::ImportCoin(const std::vector<uint8_t> params, const CTransaction &imp
|
|||||||
if (!GetProofRoot(proof.first, momom))
|
if (!GetProofRoot(proof.first, momom))
|
||||||
return Invalid("coudnt-load-momom");
|
return Invalid("coudnt-load-momom");
|
||||||
|
|
||||||
|
printf("momom: %s\n", momom.GetHex().data())
|
||||||
|
|
||||||
target = proof.second.Exec(burnTx.GetHash());
|
target = proof.second.Exec(burnTx.GetHash());
|
||||||
if (momom != proof.second.Exec(burnTx.GetHash()))
|
if (momom != proof.second.Exec(burnTx.GetHash()))
|
||||||
return Invalid("momom-check-fail");
|
return Invalid("momom-check-fail");
|
||||||
@@ -86,5 +88,3 @@ bool Eval::ImportCoin(const std::vector<uint8_t> params, const CTransaction &imp
|
|||||||
|
|
||||||
return Valid();
|
return Valid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ TxProof GetCrossChainProof(const uint256 txid, const char* targetSymbol, uint32_
|
|||||||
if (MoMoM.IsNull())
|
if (MoMoM.IsNull())
|
||||||
throw std::runtime_error("No MoMs found");
|
throw std::runtime_error("No MoMs found");
|
||||||
|
|
||||||
|
printf("momom: %s\n", MoMoM.GetHex().data())
|
||||||
|
|
||||||
// Find index of source MoM in MoMoM
|
// Find index of source MoM in MoMoM
|
||||||
int nIndex;
|
int nIndex;
|
||||||
for (nIndex=0; nIndex<moms.size(); nIndex++) {
|
for (nIndex=0; nIndex<moms.size(); nIndex++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user