Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/tx_verify.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
* inputs | * inputs | ||||
* @see CTransaction::FetchInputs | * @see CTransaction::FetchInputs | ||||
*/ | */ | ||||
uint64_t GetP2SHSigOpCount(const CTransaction &tx, | uint64_t GetP2SHSigOpCount(const CTransaction &tx, | ||||
const CCoinsViewCache &mapInputs, uint32_t flags); | const CCoinsViewCache &mapInputs, uint32_t flags); | ||||
/** | /** | ||||
* Compute total signature operation of a transaction. | * Compute total signature operation of a transaction. | ||||
* @param[in] tx Transaction for which we are computing the cost | * @param[in] tx Transaction for which we are computing the count | ||||
* @param[in] inputs Map of previous transactions that have outputs we're | * @param[in] inputs Map of previous transactions that have outputs we're | ||||
* spending | * spending | ||||
* @param[in] flags Script verification flags | * @param[in] flags Script verification flags | ||||
* @return Total signature operation cost of tx | * @return Total signature operation count of tx | ||||
*/ | */ | ||||
uint64_t GetTransactionSigOpCount(const CTransaction &tx, | uint64_t GetTransactionSigOpCount(const CTransaction &tx, | ||||
const CCoinsViewCache &inputs, | const CCoinsViewCache &inputs, | ||||
uint32_t flags); | uint32_t flags); | ||||
#endif // BITCOIN_CONSENSUS_TX_VERIFY_H | #endif // BITCOIN_CONSENSUS_TX_VERIFY_H |