Merge pull request #4260

aab2c0f Remove template matching params from GetOpName() (Huang Le)
This commit is contained in:
Wladimir J. van der Laan 2014-06-04 19:26:26 +02:00
commit d24310d23a
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
1 changed files with 6 additions and 7 deletions

View File

@ -208,14 +208,13 @@ const char* GetOpName(opcodetype opcode)
case OP_NOP9 : return "OP_NOP9";
case OP_NOP10 : return "OP_NOP10";
// template matching params
case OP_PUBKEYHASH : return "OP_PUBKEYHASH";
case OP_PUBKEY : return "OP_PUBKEY";
case OP_SMALLDATA : return "OP_SMALLDATA";
case OP_INVALIDOPCODE : return "OP_INVALIDOPCODE";
// Note:
// The template matching params OP_SMALLDATA/etc are defined in opcodetype enum
// as kind of implementation hack, they are *NOT* real opcodes. If found in real
// Script, just let the default: case deal with them.
default:
return "OP_UNKNOWN";
}