Skip to main content

Module power_sort

Module power_sort 

Source

Functionsยง

add_event_auth_chain ๐Ÿ”’
Add the event with the given event ID and all the events in its auth chain that are in the full conflicted set to the graph.
fetch_optional_event ๐Ÿ”’
is_power_event_id ๐Ÿ”’
Whether the given event ID belongs to a power event.
power_level_for_sender ๐Ÿ”’
Finds the power level for an event sender.
power_sort ๐Ÿ”’
Enlarge the given list of conflicted power events by adding the events in their auth chain that are in the full conflicted set, and sort it using reverse topological power ordering.