[MOVEONLY] Turn CScript::GetOp2 into a function and move to cpp

This commit is contained in:
Pieter Wuille
2018-04-04 09:14:13 -07:00
parent 6a7456ad60
commit 54a5a21158
3 changed files with 57 additions and 54 deletions

View File

@@ -34,7 +34,7 @@ std::string FormatScript(const CScript& script)
while (it != script.end()) {
CScript::const_iterator it2 = it;
std::vector<unsigned char> vch;
if (script.GetOp2(it, op, &vch)) {
if (script.GetOp(it, op, vch)) {
if (op == OP_0) {
ret += "0 ";
continue;