Changeset View
Changeset View
Standalone View
Standalone View
src/script/script.h
Show First 20 Lines • Show All 613 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
/** | /** | ||||
* Pre-version-0.6, Bitcoin always counted CHECKMULTISIGs as 20 sigops. With | * Pre-version-0.6, Bitcoin always counted CHECKMULTISIGs as 20 sigops. With | ||||
* pay-to-script-hash, that changed: CHECKMULTISIGs serialized in scriptSigs | * pay-to-script-hash, that changed: CHECKMULTISIGs serialized in scriptSigs | ||||
* are counted more accurately, assuming they are of the form | * are counted more accurately, assuming they are of the form | ||||
* ... OP_N CHECKMULTISIG ... | * ... OP_N CHECKMULTISIG ... | ||||
*/ | */ | ||||
unsigned int GetSigOpCount(bool fAccurate) const; | uint32_t GetSigOpCount(uint32_t flags, bool fAccurate) const; | ||||
/** | /** | ||||
* Accurately count sigOps, including sigOps in pay-to-script-hash | * Accurately count sigOps, including sigOps in pay-to-script-hash | ||||
* transactions: | * transactions: | ||||
*/ | */ | ||||
unsigned int GetSigOpCount(const CScript &scriptSig) const; | uint32_t GetSigOpCount(uint32_t flags, const CScript &scriptSig) const; | ||||
bool IsPayToScriptHash() const; | bool IsPayToScriptHash() const; | ||||
bool IsCommitment(const std::vector<uint8_t> &data) const; | bool IsCommitment(const std::vector<uint8_t> &data) const; | ||||
bool IsWitnessProgram(int &version, std::vector<uint8_t> &program) const; | bool IsWitnessProgram(int &version, std::vector<uint8_t> &program) const; | ||||
/** | /** | ||||
* Called by IsStandardTx and P2SH/BIP62 VerifyScript (which makes it | * Called by IsStandardTx and P2SH/BIP62 VerifyScript (which makes it | ||||
* consensus-critical). | * consensus-critical). | ||||
Show All 29 Lines |