mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user