Browse Source

Fix formatting of NOPs for generated script tests

0.13
Pieter Wuille 9 years ago
parent
commit
d03e46625a
  1. 2
      src/core_write.cpp

2
src/core_write.cpp

@ -35,7 +35,7 @@ string FormatScript(const CScript& script) @@ -35,7 +35,7 @@ string FormatScript(const CScript& script)
} else if ((op >= OP_1 && op <= OP_16) || op == OP_1NEGATE) {
ret += strprintf("%i ", op - OP_1NEGATE - 1);
continue;
} else if (op >= OP_NOP && op <= OP_CHECKMULTISIGVERIFY) {
} else if (op >= OP_NOP && op <= OP_NOP10) {
string str(GetOpName(op));
if (str.substr(0, 3) == string("OP_")) {
ret += str.substr(3, string::npos) + " ";

Loading…
Cancel
Save