Compute total signature operation cost of a transaction.
Declared in <consensus/tx_verify.h>
int64_t
GetTransactionSigOpCost(
CTransaction const& tx,
CCoinsViewCache const& inputs,
script_verify_flags flags);
Total signature operation cost of tx
| Name | Description |
|---|---|
| tx [in] | Transaction for which we are computing the cost |
| inputs [in] | Map of previous transactions that have outputs we're spending |
| flags [in] | Script verification flags |