Changeset View
Changeset View
Standalone View
Standalone View
src/script/script.cpp
Show First 20 Lines • Show All 247 Lines • ▼ Show 20 Lines | switch (opcode) { | ||||
case OP_NOP10: | case OP_NOP10: | ||||
return "OP_NOP10"; | return "OP_NOP10"; | ||||
case OP_INVALIDOPCODE: | case OP_INVALIDOPCODE: | ||||
return "OP_INVALIDOPCODE"; | return "OP_INVALIDOPCODE"; | ||||
// Note: | // Note: | ||||
// The template matching params OP_SMALLINTEGER/etc are defined in | // The template matching params OP_SMALLINTEGER/etc are defined in | ||||
// opcodetype enum as kind of implementation hack, they are *NOT* real | // opcodetype enum as kind of implementation hack, they are *NOT* | ||||
// opcodes. If found in real Script, just let the default: case deal | // real opcodes. If found in real Script, just let the default: | ||||
// with them. | // case deal with them. | ||||
default: | default: | ||||
return "OP_UNKNOWN"; | return "OP_UNKNOWN"; | ||||
} | } | ||||
} | } | ||||
unsigned int CScript::GetSigOpCount(bool fAccurate) const { | unsigned int CScript::GetSigOpCount(bool fAccurate) const { | ||||
unsigned int n = 0; | unsigned int n = 0; | ||||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |