From 714d2650b5fa0e1a5a0410a3795ca7417bf36033 Mon Sep 17 00:00:00 2001 From: janko33bd Date: Wed, 10 Jan 2018 23:13:59 +0100 Subject: [PATCH] added SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS --- src/script/interpreter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index a6f8fd0e1..e86bf4fc1 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -428,6 +428,10 @@ bool EvalScript(vector >& 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)