Skip to main content

sigop_adjusted_virtual_size

Function sigop_adjusted_virtual_size 

Source
pub fn sigop_adjusted_virtual_size(
    transaction_weight: TransactionWeight,
    sigops: SigopCost,
) -> Result<PolicyVirtualSize, FeePolicyError>
Expand description

Calculate HSD’s sigop-adjusted policy virtual size.

HSD takes the greater of serialized transaction weight and sigops * 20, then divides by four with ceiling. This function does not decide whether the weight or sigop cost is standard; the pinned implementation performs those admission checks separately.