Changeset View
Changeset View
Standalone View
Standalone View
src/policy/policy.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
static const unsigned int STANDARD_NOT_MANDATORY_VERIFY_FLAGS = | static const unsigned int STANDARD_NOT_MANDATORY_VERIFY_FLAGS = | ||||
STANDARD_SCRIPT_VERIFY_FLAGS & ~MANDATORY_SCRIPT_VERIFY_FLAGS; | STANDARD_SCRIPT_VERIFY_FLAGS & ~MANDATORY_SCRIPT_VERIFY_FLAGS; | ||||
/** Used as the flags parameter to sequence and nLocktime checks in | /** Used as the flags parameter to sequence and nLocktime checks in | ||||
* non-consensus code. */ | * non-consensus code. */ | ||||
static const unsigned int STANDARD_LOCKTIME_VERIFY_FLAGS = | static const unsigned int STANDARD_LOCKTIME_VERIFY_FLAGS = | ||||
LOCKTIME_VERIFY_SEQUENCE | LOCKTIME_MEDIAN_TIME_PAST; | LOCKTIME_VERIFY_SEQUENCE | LOCKTIME_MEDIAN_TIME_PAST; | ||||
bool IsStandard(const CScript &scriptPubKey, txnouttype &whichType, | bool IsStandard(const CScript &scriptPubKey, txnouttype &whichType); | ||||
bool allowLargeOpReturn = false); | |||||
/** | /** | ||||
* 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 | ||||
*/ | */ | ||||
bool IsStandardTx(const CTransaction &tx, std::string &reason, | bool IsStandardTx(const CTransaction &tx, std::string &reason); | ||||
bool allowLargeOpReturn = false); | |||||
/** | /** | ||||
* Check for standard transaction types | * Check for standard transaction types | ||||
* @param[in] mapInputs Map of previous transactions that have outputs we're | * @param[in] mapInputs Map of previous transactions that have outputs we're | ||||
* spending | * spending | ||||
* @return True if all inputs (scriptSigs) use only standard transaction forms | * @return True if all inputs (scriptSigs) use only standard transaction forms | ||||
*/ | */ | ||||
bool AreInputsStandard(const CTransaction &tx, | bool AreInputsStandard(const CTransaction &tx, | ||||
const CCoinsViewCache &mapInputs); | const CCoinsViewCache &mapInputs); | ||||
extern CFeeRate incrementalRelayFee; | extern CFeeRate incrementalRelayFee; | ||||
extern CFeeRate dustRelayFee; | extern CFeeRate dustRelayFee; | ||||
extern unsigned int nBytesPerSigOp; | extern unsigned int nBytesPerSigOp; | ||||
#endif // BITCOIN_POLICY_POLICY_H | #endif // BITCOIN_POLICY_POLICY_H |