Changeset View
Changeset View
Standalone View
Standalone View
src/policy/policy.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Used as the flags parameter to sequence and nLocktime checks in non-consensus | * Used as the flags parameter to sequence and nLocktime checks in non-consensus | ||||
* code. | * code. | ||||
*/ | */ | ||||
static const uint32_t STANDARD_LOCKTIME_VERIFY_FLAGS = | static const uint32_t STANDARD_LOCKTIME_VERIFY_FLAGS = | ||||
LOCKTIME_VERIFY_SEQUENCE | LOCKTIME_MEDIAN_TIME_PAST; | LOCKTIME_VERIFY_SEQUENCE | LOCKTIME_MEDIAN_TIME_PAST; | ||||
/** | /** | ||||
* Used as the flags parameters to check for sigops as if OP_CHECKDATASIG is | * Used as the flags parameters to check for sigops as if the Magnetic upgrade | ||||
* enabled. Can be removed after OP_CHECKDATASIG is activated as the flag is | * is enabled. Can be removed after Magnetic upgrade is activated as the flag | ||||
* made standard. | * will be made standard. | ||||
*/ | */ | ||||
static const uint32_t STANDARD_CHECKDATASIG_VERIFY_FLAGS = | static const uint32_t STANDARD_CHECKDATASIG_VERIFY_FLAGS = | ||||
STANDARD_SCRIPT_VERIFY_FLAGS | SCRIPT_ENABLE_CHECKDATASIG; | STANDARD_SCRIPT_VERIFY_FLAGS | SCRIPT_ENABLE_MAGNETIC_OPCODES; | ||||
bool IsStandard(const CScript &scriptPubKey, txnouttype &whichType); | bool IsStandard(const CScript &scriptPubKey, txnouttype &whichType); | ||||
/** | /** | ||||
* Check for standard transaction types | * Check for standard transaction types | ||||
* @return True if all outputs (scriptPubKeys) use only standard transaction | * @return True if all outputs (scriptPubKeys) use only standard transaction | ||||
* forms | * forms | ||||
*/ | */ | ||||
Show All 16 Lines |