Skip to main content

effective_weight

Function effective_weight 

Source
pub const fn effective_weight(weight: u32) -> u32
Expand description

The rate-budget estimate every backend persists and charges. Proto3 scalar omission, old producers, and Rust/Go zero-value struct literals all arrive as zero, so zero is the compatibility sentinel for the documented default of one. Public APIs still reject an explicitly supplied zero because a zero-cost job should be reported as actual usage, not used to bypass admission.