GetVirtualTransactionSize overloads

Synopses

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);

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);

Return Value

Virtual transaction size in vB.

Parameters

Name

Description

nWeight

Transaction weight.

nSigOpCost

Signature operation cost of the transaction.

bytes_per_sigop

Bytes charged per signature operation.

tx

Transaction to measure.

Created with MrDocs