Skip to main content

Module active_features

Module active_features 

Source
Expand description

Per-block view of currently active features.

ActiveFeatures is the immutable snapshot the bank installs once per block after the subdag-fed clock update, and from which every hot-path gating site reads. The map value is the current bank slot at the moment the snapshot was computed; it is informational (debugging, metrics) and is not persisted — historical activation slots would require on-chain state the design intentionally avoids.

This type lives in rialo-s-program-runtime so it can be threaded through EnvironmentConfig → InvokeContext, reachable by every builtin processor. The on-chain wire crate feature-management-enforcement-interface stays #![no_std] and free of the ahash dependency.

iter() below is a public, iterated view consumed by a per-block readiness check and an RPC handler. Neither depends on iteration order: the RPC handler explicitly sorts its collected output by name before returning it, and the readiness check only reports the first unsupported feature name found in a local error surfaced to the operator (the execution loop halts and retries the same block; nothing about which name gets reported reaches another validator).

Structs§

ActiveFeatures
Immutable per-block snapshot of active features.

Type Aliases§

Slot
Slot number alias used by the runtime view.