try print momom to file
This commit is contained in:
@@ -78,8 +78,12 @@ bool Eval::ImportCoin(const std::vector<uint8_t> params, const CTransaction &imp
|
|||||||
uint256 momom, target;
|
uint256 momom, target;
|
||||||
if (!GetProofRoot(proof.first, momom))
|
if (!GetProofRoot(proof.first, momom))
|
||||||
return Invalid("coudnt-load-momom");
|
return Invalid("coudnt-load-momom");
|
||||||
|
|
||||||
fprintf(stderr,"IMPORT momom: %s\n", momom.GetHex().data());
|
fprintf(stderr,"IMPORT momom: %s\n", momom.GetHex().data());
|
||||||
|
FILE * fptr;
|
||||||
|
fptr = fopen("/home/cc/kmdmomom", "a+");
|
||||||
|
fprintf(fptr, "%s\n", momom.GetHex().data());
|
||||||
|
fclose(fptr);
|
||||||
|
|
||||||
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()))
|
||||||
|
|||||||
@@ -163,6 +163,10 @@ TxProof GetCrossChainProof(const uint256 txid, const char* targetSymbol, uint32_
|
|||||||
throw std::runtime_error("No MoMs found");
|
throw std::runtime_error("No MoMs found");
|
||||||
|
|
||||||
printf("[%s] GetCrossChainProof MoMoM: %s\n", targetSymbol,MoMoM.GetHex().data());
|
printf("[%s] GetCrossChainProof MoMoM: %s\n", targetSymbol,MoMoM.GetHex().data());
|
||||||
|
FILE * fptr;
|
||||||
|
fptr = fopen("/home/cc/acmomom", "a+");
|
||||||
|
fprintf(fptr, "%s\n", MoMoM.GetHex().data());
|
||||||
|
fclose(fptr);
|
||||||
|
|
||||||
// Find index of source MoM in MoMoM
|
// Find index of source MoM in MoMoM
|
||||||
int nIndex;
|
int nIndex;
|
||||||
|
|||||||
Reference in New Issue
Block a user