aboutsummaryrefslogtreecommitdiff
path: root/src/core_read.cpp
diff options
context:
space:
mode:
authorMark Friedenbach <mark@friedenbach.org>2017-07-11 16:37:40 +0900
committerMark Friedenbach <mark@friedenbach.org>2017-07-11 16:45:42 +0900
commitc8e29d7ff0da853d4243c08b34c15fab3dfcc76f (patch)
treeba911f0b5dff03e49d7fde7e345b83df39db60c2 /src/core_read.cpp
parent21ed30a314cf2118bd4719c6a09985f69fd25dbf (diff)
downloadbitcoin-c8e29d7ff0da853d4243c08b34c15fab3dfcc76f.tar.xz
Replace MAX_OPCODE for OP_NOP10.
That OP_NOP10 is the last executable opcode is a bit of a obscure trivia, and the MAX_OPCODE constant already exists. This merely standardizes use of MAX_OPCODE over OP_NOP10 where it makes sense and is more clear.
Diffstat (limited to 'src/core_read.cpp')
-rw-r--r--src/core_read.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core_read.cpp b/src/core_read.cpp
index dd9b5726a3..18d02fb913 100644
--- a/src/core_read.cpp
+++ b/src/core_read.cpp
@@ -27,7 +27,7 @@ CScript ParseScript(const std::string& s)
if (mapOpNames.empty())
{
- for (int op = 0; op <= OP_NOP10; op++)
+ for (int op = 0; op <= MAX_OPCODE; op++)
{
// Allow OP_RESERVED to get into mapOpNames
if (op < OP_NOP && op != OP_RESERVED)