add target to MoMoM print

This commit is contained in:
blackjok3r
2018-09-27 19:50:45 +08:00
parent f0587239fa
commit a5c1bc3360
3 changed files with 4 additions and 4 deletions

View File

@@ -79,11 +79,11 @@ 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("IMPORT momom: %s\n", momom.GetHex().data()); printf("[%s] IMPORT momom: %s\n", targetSymbol,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-fai");
} }
return Valid(); return Valid();

View File

@@ -162,7 +162,7 @@ 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("GetCrossChainProof MoMoM: %s\n", MoMoM.GetHex().data()); printf("[%s] GetCrossChainProof MoMoM: %s\n", targetSymbol,MoMoM.GetHex().data());
// Find index of source MoM in MoMoM // Find index of source MoM in MoMoM
int nIndex; int nIndex;

View File

@@ -1445,7 +1445,7 @@ int32_t komodo_is_PoSblock(int32_t slowflag,int32_t height,CBlock *pblock,arith_
{ {
if ( isPoS != 2 ) if ( isPoS != 2 )
{ {
fprintf(stderr,"ht.%d isPoS.%d utxo not validated -> must be PoW fake\n",height,isPoS); //fprintf(stderr,"ht.%d isPoS.%d utxo not validated -> must be PoW fake\n",height,isPoS);
isPoS = 0; isPoS = 0;
} }
else else