GetVirtualTransactionSize overloads
Declared in <policy/policy.h>
Compute the virtual transaction size (weight reinterpreted as bytes).
int64_t
GetVirtualTransactionSize(
int64_t nWeight,
int64_t nSigOpCost,
unsigned int bytes_per_sigop);
» more...
Compute the virtual size of a transaction, accounting for sigop cost.
int64_t
GetVirtualTransactionSize(
CTransaction const& tx,
int64_t nSigOpCost,
unsigned int bytes_per_sigop);
» more...
Virtual transaction size in vB.
| Name | Description |
|---|---|
| nWeight | Transaction weight. |
| nSigOpCost | Signature operation cost of the transaction. |
| bytes_per_sigop | Bytes charged per signature operation. |
| tx | Transaction to measure. |