Check unserialized tx

This commit is contained in:
Michael Toutonghi
2018-10-13 19:04:50 -07:00
parent 26bf01e90e
commit 09dc47493c

View File

@@ -414,7 +414,7 @@ bool StakeGuardValidate(struct CCcontract_info *cp, Eval* eval, const CTransacti
catch (...)
{
}
if (checkOK && !ValidateMatchingStake(txOut, tx.vin[0].prevout.n, tx, validCheat))
if (checkOK && !ValidateMatchingStake(txOut, tx.vin[0].prevout.n, cheatTx, validCheat))
{
validCheat = false;
}