Skip to content

Commit d03e466

Browse files
committed
Fix formatting of NOPs for generated script tests
1 parent c7c6641 commit d03e466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core_write.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ string FormatScript(const CScript& script)
3535
} else if ((op >= OP_1 && op <= OP_16) || op == OP_1NEGATE) {
3636
ret += strprintf("%i ", op - OP_1NEGATE - 1);
3737
continue;
38-
} else if (op >= OP_NOP && op <= OP_CHECKMULTISIGVERIFY) {
38+
} else if (op >= OP_NOP && op <= OP_NOP10) {
3939
string str(GetOpName(op));
4040
if (str.substr(0, 3) == string("OP_")) {
4141
ret += str.substr(3, string::npos) + " ";
@@ -45,7 +45,7 @@ string FormatScript(const CScript& script)
4545
if (vch.size() > 0) {
4646
ret += strprintf("0x%x 0x%x ", HexStr(it2, it - vch.size()), HexStr(it - vch.size(), it));
4747
} else {
48-
ret += strprintf("0x%x", HexStr(it2, it));
48+
ret += strprintf("0x%x ", HexStr(it2, it));
4949
}
5050
continue;
5151
}

0 commit comments

Comments
 (0)