Changeset View
Changeset View
Standalone View
Standalone View
src/script/script.h
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | enum opcodetype { | ||||
OP_PREFIX_BEGIN = 0xf0, | OP_PREFIX_BEGIN = 0xf0, | ||||
OP_PREFIX_END = 0xf7, | OP_PREFIX_END = 0xf7, | ||||
OP_INVALIDOPCODE = 0xff, | OP_INVALIDOPCODE = 0xff, | ||||
}; | }; | ||||
const char *GetOpName(opcodetype opcode); | const char *GetOpName(opcodetype opcode); | ||||
/** | |||||
* Check whether the given stack element data would be minimally pushed using | |||||
* the given 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 { | ||||
public: | public: | ||||
explicit scriptnum_error(const std::string &str) | explicit scriptnum_error(const std::string &str) | ||||
: std::runtime_error(str) {} | : std::runtime_error(str) {} | ||||
}; | }; | ||||
class CScriptNum { | class CScriptNum { | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 476 Lines • Show Last 20 Lines |