Changeset View
Changeset View
Standalone View
Standalone View
src/script/script.cpp
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | switch (opcode) { | ||||
case OP_NOP9: | case OP_NOP9: | ||||
return "OP_NOP9"; | return "OP_NOP9"; | ||||
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* | // opcodetype enum as kind of implementation hack, they are *NOT* | ||||
// real opcodes. If found in real Script, just let the default: | // real opcodes. If found in real Script, just let the default: | ||||
// case deal with them. | // case deal with them. | ||||
default: | default: | ||||
return "OP_UNKNOWN"; | return "OP_UNKNOWN"; | ||||
} | } | ||||
} | } | ||||
bool CScriptNum::IsMinimallyEncoded(const std::vector<uint8_t> &vch, | bool CScriptNum::IsMinimallyEncoded(const std::vector<uint8_t> &vch, | ||||
const size_t nMaxNumSize) { | const size_t nMaxNumSize) { | ||||
▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines |