Changeset View
Changeset View
Standalone View
Standalone View
src/script/script_flags.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | enum { | ||||
// | // | ||||
SCRIPT_ENABLE_SIGHASH_FORKID = (1U << 16), | SCRIPT_ENABLE_SIGHASH_FORKID = (1U << 16), | ||||
// Do we accept activate replay protection using a different fork id. | // Do we accept activate replay protection using a different fork id. | ||||
// | // | ||||
SCRIPT_ENABLE_REPLAY_PROTECTION = (1U << 17), | SCRIPT_ENABLE_REPLAY_PROTECTION = (1U << 17), | ||||
// Count sigops for OP_CHECKDATASIG and variant. The interpreter treats | // Count sigops for OP_CHECKDATASIG and variant. The interpreter treats | ||||
// OP_CHECKDATASIG(VERIFY) as always valid, this flag only affects sigops | // OP_CHECKDATASIG(VERIFY) as always valid. This flag only affects sigops | ||||
// counting. | // counting, and will be removed during cleanup of the SigChecks upgrade. | ||||
// | |||||
SCRIPT_VERIFY_CHECKDATASIG_SIGOPS = (1U << 18), | SCRIPT_VERIFY_CHECKDATASIG_SIGOPS = (1U << 18), | ||||
// The exception to CLEANSTACK and P2SH for the recovery of coins sent | // The exception to CLEANSTACK and P2SH for the recovery of coins sent | ||||
// to p2sh segwit addresses is not allowed. | // to p2sh segwit addresses is not allowed. | ||||
SCRIPT_DISALLOW_SEGWIT_RECOVERY = (1U << 20), | SCRIPT_DISALLOW_SEGWIT_RECOVERY = (1U << 20), | ||||
// Whether to allow new OP_CHECKMULTISIG logic to trigger. (new multisig | // Whether to allow new OP_CHECKMULTISIG logic to trigger. (new multisig | ||||
// logic verifies faster, and only allows Schnorr signatures) | // logic verifies faster, and only allows Schnorr signatures) | ||||
SCRIPT_ENABLE_SCHNORR_MULTISIG = (1U << 21), | SCRIPT_ENABLE_SCHNORR_MULTISIG = (1U << 21), | ||||
// Require the number of sigchecks in an input to satisfy a specific | // Require the number of sigchecks in an input to satisfy a specific | ||||
// bound, defined by scriptSig length. | // bound, defined by scriptSig length. | ||||
// Note: The Segwit Recovery feature is a (currently moot) exception to | // Note: The Segwit Recovery feature is a (currently moot) exception to | ||||
// VERIFY_INPUT_SIGCHECKS | // VERIFY_INPUT_SIGCHECKS | ||||
SCRIPT_VERIFY_INPUT_SIGCHECKS = (1U << 22), | SCRIPT_VERIFY_INPUT_SIGCHECKS = (1U << 22), | ||||
// Whether the new OP_REVERSEBYTES opcode can be used. | // Whether the new OP_REVERSEBYTES opcode can be used. | ||||
SCRIPT_ENABLE_OP_REVERSEBYTES = (1U << 23), | SCRIPT_ENABLE_OP_REVERSEBYTES = (1U << 23), | ||||
// Setting this flag zeroes sigops counting and thus results in the removal | |||||
// of all sigop limits. This flag only affects sigops counting, and will be | |||||
// removed during cleanup of the SigChecks upgrade. | |||||
SCRIPT_ZERO_SIGOPS = (1U << 30), | |||||
// A utility flag to decide whether VerifyScript should output the correct | // A utility flag to decide whether VerifyScript should output the correct | ||||
// sigchecks value or to report zero. | // sigchecks value or to report zero. | ||||
// This has no effect on script success / failure, and will be removed | // This has no effect on script success / failure, and will be removed | ||||
// after cleanup of the SigChecks upgrade. | // after cleanup of the SigChecks upgrade. | ||||
SCRIPT_REPORT_SIGCHECKS = (1U << 31), | SCRIPT_REPORT_SIGCHECKS = (1U << 31), | ||||
}; | }; | ||||
#endif // BITCOIN_SCRIPT_SCRIPT_FLAGS_H | #endif // BITCOIN_SCRIPT_SCRIPT_FLAGS_H |