Index: src/script/interpreter.cpp =================================================================== --- src/script/interpreter.cpp +++ src/script/interpreter.cpp @@ -82,6 +82,28 @@ } static bool IsOpcodeDisabled(opcodetype opcode, uint32_t flags) { + bool fEnabledOpCodesMagnetic = + (flags & SCRIPT_ENABLE_MAGNETIC_OPCODES) != 0; + + if (fEnabledOpCodesMagnetic) { + switch (opcode) { + case OP_INVERT: + return true; + + case OP_MUL: + return true; + + case OP_LSHIFT: + return true; + + case OP_RSHIFT: + return true; + + default: + break; + } + } + switch (opcode) { case OP_INVERT: case OP_2MUL: