GetSigOpsAdjustedWeight

Adjust a transaction weight to account for its signature operation cost.

Synopsis

Declared in <policy/policy.h>

int64_t
GetSigOpsAdjustedWeight(
    int64_t weight,
    int64_t sigop_cost,
    unsigned int bytes_per_sigop);

Return Value

Weight adjusted upward for sigop cost.

Parameters

NameDescription
weightTransaction weight.
sigop_costSignature operation cost of the transaction.
bytes_per_sigopBytes charged per signature operation.