Skip to main content

Module budget

Module budget 

Source

Structsยง

MarshalPersistEstimator
Point-in-time marshal persistence cost per encoded block byte.
ValidationLatencyEstimate
Point-in-time validation latency estimate from recent proposal validation.
ValidationLatencyEstimator
Tracks recent local execution-layer block validation latency.
ValidationLatencySample ๐Ÿ”’
ValidationLatencyWorkload
Gas and transaction count used to estimate validation latency.

Constantsยง

MIN_SAMPLE_BYTES ๐Ÿ”’
Ignore tiny blocks so fixed archive overhead does not become a large-block byte cost.
RATE_DECAY ๐Ÿ”’
How quickly the learned marshal persistence rate decays when blocks get cheaper.
VALIDATION_LATENCY_SAMPLE_WINDOW ๐Ÿ”’
Number of recent successful EL validation timings to retain.
VALIDATION_LATENCY_WORKLOAD_SCALE ๐Ÿ”’
Fixed-point scale for validation workload multipliers.

Staticsยง

MARSHAL_PERSIST_NS_PER_BYTE ๐Ÿ”’

Functionsยง

insert_count ๐Ÿ”’
marshal_persist_estimate
Returns the current estimate of consensus marshal persistence cost.
observe_marshal_persist
Records time spent persisting an encoded block through consensus marshal.
percentile_from_counts ๐Ÿ”’
percentile_rank ๐Ÿ”’
remove_count ๐Ÿ”’
scale_above_baseline ๐Ÿ”’
scale_duration ๐Ÿ”’