diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-06-04 19:26:26 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-06-04 19:27:03 +0200 |
| commit | d24310d23aa323dea1c80be52395d6194ac18232 (patch) | |
| tree | 1023ff1d8e35ad9b4d3529a438b860e1476ab51b /src/script.cpp | |
| parent | Merge pull request #4223 (diff) | |
| parent | Remove template matching params from GetOpName() (diff) | |
| download | discoin-d24310d23aa323dea1c80be52395d6194ac18232.tar.xz discoin-d24310d23aa323dea1c80be52395d6194ac18232.zip | |
Merge pull request #4260
aab2c0f Remove template matching params from GetOpName() (Huang Le)
Diffstat (limited to 'src/script.cpp')
| -rw-r--r-- | src/script.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/script.cpp b/src/script.cpp index ac6d4b316..381e84d0b 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -208,14 +208,13 @@ const char* GetOpName(opcodetype opcode) case OP_NOP9 : return "OP_NOP9"; case OP_NOP10 : return "OP_NOP10"; + 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. - // 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"; default: return "OP_UNKNOWN"; } |