Changeset View
Changeset View
Standalone View
Standalone View
src/script/standard.h
Show All 37 Lines | |||||
* but in the future other flags may be added, such as a soft-fork to enforce | * but in the future other flags may be added, such as a soft-fork to enforce | ||||
* strict DER encoding. | * strict DER encoding. | ||||
* | * | ||||
* Failing one of these tests may trigger a DoS ban - see CheckInputs() for | * Failing one of these tests may trigger a DoS ban - see CheckInputs() for | ||||
* details. | * details. | ||||
*/ | */ | ||||
static const uint32_t MANDATORY_SCRIPT_VERIFY_FLAGS = | static const uint32_t MANDATORY_SCRIPT_VERIFY_FLAGS = | ||||
SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC | | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC | | ||||
SCRIPT_ENABLE_SIGHASH_FORKID | SCRIPT_VERIFY_LOW_S | SCRIPT_VERIFY_NULLFAIL; | SCRIPT_ENABLE_SIGHASH_FORKID | SCRIPT_VERIFY_LOW_S | | ||||
SCRIPT_VERIFY_NULLFAIL | SCRIPT_ENABLE_CHECKDATASIG | | |||||
SCRIPT_VERIFY_SIGPUSHONLY | SCRIPT_VERIFY_CLEANSTACK; | |||||
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, | ||||
Show All 38 Lines |