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

Name

Description

weight

Transaction weight.

sigop_cost

Signature operation cost of the transaction.

bytes_per_sigop

Bytes charged per signature operation.

Created with MrDocs