Changeset View
Changeset View
Standalone View
Standalone View
src/script/standard.h
Show All 34 Lines | |||||
static const unsigned int MAX_OP_RETURN_RELAY = 223; | static const unsigned int MAX_OP_RETURN_RELAY = 223; | ||||
/** | /** | ||||
* A data carrying output is an unspendable output containing data. The script | * A data carrying output is an unspendable output containing data. The script | ||||
* type is designated as TX_NULL_DATA. | * type is designated as TX_NULL_DATA. | ||||
*/ | */ | ||||
extern bool fAcceptDatacarrier; | extern bool fAcceptDatacarrier; | ||||
/** | |||||
* When transactions fail script evaluations under standard flags, this flagset | |||||
* influences the decision of whether to drop them or to also ban the originator | |||||
* (see CheckInputs). | |||||
*/ | |||||
static const uint32_t MANDATORY_SCRIPT_VERIFY_FLAGS = | |||||
SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC | | |||||
SCRIPT_ENABLE_SIGHASH_FORKID | SCRIPT_VERIFY_LOW_S | | |||||
SCRIPT_VERIFY_NULLFAIL | SCRIPT_VERIFY_MINIMALDATA | | |||||
SCRIPT_ENABLE_SCHNORR_MULTISIG; | |||||
enum txnouttype { | enum txnouttype { | ||||
TX_NONSTANDARD, | TX_NONSTANDARD, | ||||
// 'standard' transaction types: | // 'standard' transaction types: | ||||
TX_PUBKEY, | TX_PUBKEY, | ||||
TX_PUBKEYHASH, | TX_PUBKEYHASH, | ||||
TX_SCRIPTHASH, | TX_SCRIPTHASH, | ||||
TX_MULTISIG, | TX_MULTISIG, | ||||
// unspendable OP_RETURN script that carries data | // unspendable OP_RETURN script that carries data | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |