Changeset View
Changeset View
Standalone View
Standalone View
src/script/standard.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
* Mandatory script verification flags that all new blocks must comply with for | * Mandatory script verification flags that all new blocks must comply with for | ||||
* them to be valid (but old blocks may not comply with). | * them to be valid (but old blocks may not comply with). | ||||
* | * | ||||
* 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_VERIFY_MINIMALDATA; | |||||
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 20 Lines • Show All 82 Lines • Show Last 20 Lines |