Changeset View
Changeset View
Standalone View
Standalone View
src/script/script.h
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | enum opcodetype { | ||||
OP_PREFIX_END = 0xf7, | OP_PREFIX_END = 0xf7, | ||||
OP_INVALIDOPCODE = 0xff, | OP_INVALIDOPCODE = 0xff, | ||||
}; | }; | ||||
// Maximum value that an opcode can be | // Maximum value that an opcode can be | ||||
static const unsigned int MAX_OPCODE = FIRST_UNDEFINED_OP_VALUE - 1; | static const unsigned int MAX_OPCODE = FIRST_UNDEFINED_OP_VALUE - 1; | ||||
const char *GetOpName(opcodetype opcode); | std::string GetOpName(opcodetype opcode); | ||||
/** | /** | ||||
* Check whether the given stack element data would be minimally pushed using | * Check whether the given stack element data would be minimally pushed using | ||||
* the given opcode. | * the given opcode. | ||||
*/ | */ | ||||
bool CheckMinimalPush(const std::vector<uint8_t> &data, opcodetype opcode); | bool CheckMinimalPush(const std::vector<uint8_t> &data, opcodetype opcode); | ||||
class scriptnum_error : public std::runtime_error { | class scriptnum_error : public std::runtime_error { | ||||
▲ Show 20 Lines • Show All 356 Lines • Show Last 20 Lines |