Changeset View
Changeset View
Standalone View
Standalone View
src/script/script.h
Show First 20 Lines • Show All 668 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Called by IsStandardTx and P2SH/BIP62 VerifyScript (which makes it | * Called by IsStandardTx and P2SH/BIP62 VerifyScript (which makes it | ||||
* consensus-critical). | * consensus-critical). | ||||
*/ | */ | ||||
bool IsPushOnly(const_iterator pc) const; | bool IsPushOnly(const_iterator pc) const; | ||||
bool IsPushOnly() const; | bool IsPushOnly() const; | ||||
/** | /** | ||||
* Like IsPushOnly, except only allows push opcodes (no OP_RESERVED) and | |||||
* the data must be minimally pushed. | |||||
*/ | |||||
bool IsMinimalPushOnly() const; | |||||
/** | |||||
* Returns whether the script is guaranteed to fail at execution, regardless | * Returns whether the script is guaranteed to fail at execution, regardless | ||||
* of the initial stack. This allows outputs to be pruned instantly when | * of the initial stack. This allows outputs to be pruned instantly when | ||||
* entering the UTXO set. | * entering the UTXO set. | ||||
*/ | */ | ||||
bool IsUnspendable() const { | bool IsUnspendable() const { | ||||
return (size() > 0 && *begin() == OP_RETURN) || | return (size() > 0 && *begin() == OP_RETURN) || | ||||
(size() > MAX_SCRIPT_SIZE); | (size() > MAX_SCRIPT_SIZE); | ||||
} | } | ||||
Show All 17 Lines |