added SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS

This commit is contained in:
janko33bd
2018-01-10 23:13:59 +01:00
committed by GitHub
parent 602f3d2aad
commit 714d2650b5

View File

@@ -428,6 +428,10 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, un
case OP_COUNT_ACKS:
{
if (SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS) {
return set_error(serror, SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS);
}
// (secondary_chain_id ack_period liveness_period -- )
if (stack.size() < 3)