fixes for import coin

This commit is contained in:
Scott Sadler
2018-06-10 15:12:10 +02:00
parent 7776d00b9a
commit 89cfc4272d
6 changed files with 36 additions and 7 deletions

View File

@@ -57,10 +57,11 @@ bool Eval::ImportCoin(const std::vector<uint8_t> params, const CTransaction &imp
// Check proof confirms existance of burnTx
{
uint256 momom;
uint256 momom, target;
if (!GetProofRoot(proof.first, momom))
return Invalid("coudnt-load-momom");
target = proof.second.Exec(burnTx.GetHash());
if (momom != proof.second.Exec(burnTx.GetHash()))
return Invalid("momom-check-fail");
}