Module hotshot_testing::consistency_task
source ยท Expand description
task that checks leaves received across all nodes from decide events for consistency
Structsยง
- Data availability task state
Functionsยง
- invert_
network_ ๐map - sanitize_
network_ ๐map Validate that each node has only produced one unique leaf per view, and produce aNetworkMapSanitized
. - sanitize_
node_ ๐map Validate that theNodeMap
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ยง
- A map from node ids to
NodeMap
s; note that the latter may have multiple leaves per view in principle. - A map from node ids to
NodeMapSanitized
s; the latter has been sanitized validated to have a single leaf per view. - 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).
- A sanitized map from views to leaves for a single node, with only a single leaf per view.
- A view map, sanitized to have exactly one leaf per view.