Changeset View
Changeset View
Standalone View
Standalone View
src/script/standard.h
Show All 35 Lines | |||||
* them to be valid. (but old blocks may not comply with) Currently just P2SH, | * them to be valid. (but old blocks may not comply with) Currently just P2SH, | ||||
* 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 unsigned int MANDATORY_SCRIPT_VERIFY_FLAGS = | static const unsigned int MANDATORY_SCRIPT_VERIFY_FLAGS = | ||||
SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC; | SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC | SCRIPT_ENABLE_SIGHASH_FORKID; | ||||
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 37 Lines |