Module consistency_task

Module consistency_task 

Source
Expand description

task that checks leaves received across all nodes from decide events for consistency

Structsยง

ConsistencyTask
Data availability task state

Enumsยง

TestProgress ๐Ÿ”’

Functionsยง

invert_network_map ๐Ÿ”’
sanitize_network_map ๐Ÿ”’
Validate that each node has only produced one unique leaf per view, and produce a NetworkMapSanitized.
sanitize_node_map ๐Ÿ”’
Validate that the NodeMap only has a single leaf per view.
sanitize_view_map ๐Ÿ”’
validate_node_map ๐Ÿ”’
For a NodeMapSanitized, we validate that each leaf extends the preceding leaf.

Type Aliasesยง

NetworkMap
A map from node ids to NodeMaps; note that the latter may have multiple leaves per view in principle.
NetworkMapSanitized
A map from node ids to NodeMapSanitizeds; the latter has been sanitized validated to have a single leaf per view.
NodeMap
Map from views to leaves for a single node, allowing multiple leaves for each view (because the node may a priori send us multiple leaves for a given view).
NodeMapSanitized
A sanitized map from views to leaves for a single node, with only a single leaf per view.
ViewMap
ViewMapSanitized
A view map, sanitized to have exactly one leaf per view.