diff --git a/src/cc/StakeGuard.cpp b/src/cc/StakeGuard.cpp index e5898e700..fb710db88 100644 --- a/src/cc/StakeGuard.cpp +++ b/src/cc/StakeGuard.cpp @@ -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; }