Compute the virtual size of a transaction, accounting for sigop cost.
Synopsis
Declared in <policy/policy.h>
int64_t
GetVirtualTransactionSize(
CTransaction const& tx,
int64_t nSigOpCost,
unsigned int bytes_per_sigop);
Return Value
Virtual transaction size in vB.
Parameters
Name |
Description |
tx |
Transaction to measure. |
nSigOpCost |
Signature operation cost of the transaction. |
bytes_per_sigop |
Bytes charged per signature operation. |
Created with MrDocs