Module api_announcements

Module api_announcements 

Source
Expand description

Federation Api announcement handling

Structsยง

ApiAnnouncementKey
ApiAnnouncementPrefix

Functionsยง

fetch_api_announcements_from_at_least_num_of_peers ๐Ÿ”’
Fetch responses from at least num_responses_required of peers.
get_api_urls
Returns a list of all peers and their respective API URLs taking into account announcements overwriting the URLs contained in the original configuration.
run_api_announcement_refresh_task ๐Ÿ”’
Fetches API URL announcements from guardians, validates them and updates the DB if any new more upt to date ones are found.
store_api_announcement_updates ๐Ÿ”’
store_api_announcements_updates_from_peers ๐Ÿ”’

Type Aliasesยง

PeersSignedApiAnnouncements ๐Ÿ”’