Browse Source

add target to MoMoM print

pull/27/head
blackjok3r 6 years ago
parent
commit
a5c1bc3360
  1. 4
      src/cc/import.cpp
  2. 2
      src/crosschain.cpp
  3. 2
      src/komodo_bitcoind.h

4
src/cc/import.cpp

@ -79,11 +79,11 @@ bool Eval::ImportCoin(const std::vector<uint8_t> params, const CTransaction &imp
if (!GetProofRoot(proof.first, 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());
if (momom != proof.second.Exec(burnTx.GetHash()))
return Invalid("momom-check-fail");
return Invalid("momom-check-fai");
}
return Valid();

2
src/crosschain.cpp

@ -162,7 +162,7 @@ TxProof GetCrossChainProof(const uint256 txid, const char* targetSymbol, uint32_
if (MoMoM.IsNull())
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
int nIndex;

2
src/komodo_bitcoind.h

@ -1445,7 +1445,7 @@ int32_t komodo_is_PoSblock(int32_t slowflag,int32_t height,CBlock *pblock,arith_
{
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;
}
else

Loading…
Cancel
Save