Skip to main content

FindingIndex

Type Alias FindingIndex 

Source
pub type FindingIndex = HashMap<String, usize>;
Expand description

v0.105: per-replay finding-id index. Keys are content-addressed finding ids; values are positions into state.findings. Replay builds this once from genesis state and updates it in lockstep with finding.asserted pushes. Per-kind apply functions look up their target via idx.get(...) instead of an O(N) linear scan. findings are append-only in the substrate (no removals), so the index never goes stale; positions remain valid for the life of a replay.

Aliased Typeยง

pub struct FindingIndex { /* private fields */ }