networking.node.connpool
connpool
¶
Classes:
| Name | Description |
|---|---|
ConnectionPools |
|
NodeConn |
|
Classes¶
ConnectionPools
¶
ConnectionPools(max_connections: int, pool_name_to_p2p_name_and_ratio: dict[str, [str, float]], p2p_name_to_p2p: dict[str, P2P], public_key: str | None = None, token: str | None = None)
Initializes a new instance of the ConnectionPools class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_connections
|
int
|
The maximum total number of connections allowed across all pools. |
required |
pool_name_to_p2p_name_and_ratio
|
dict[str, [str, float]]
|
A dictionary mapping pool names to a list containing the associated P2P network name and its connection ratio. |
required |
p2p_name_to_p2p
|
dict[str, P2P]
|
A dictionary mapping P2P network names to their corresponding P2P objects. |
required |
public_key
|
str | None
|
An optional public key for token verification. |
None
|
token
|
str | None
|
An optional initial token for authentication. |
None
|
Returns:
| Type | Description |
|---|---|
|
None. |
Methods:
| Name | Description |
|---|---|
conn_routing_fcn |
A placeholder function that must be implemented to route connected peers to the correct pool. |
disconnect |
Disconnects from a specific peer on a P2P network. |
set_token |
Sets the authentication token for the connection pools. |
verify_token |
Verifies a received token using the provided public key. |
connect |
Connects to a peer on a specified P2P network. |
add |
Adds a connected peer to a specified connection pool. |
remove |
Removes a peer from its connection pool and disconnects from it. |
get_all_connected_peer_infos |
Retrieves a list of peer information dictionaries for a given pool. |
get_pool_status |
Returns a dictionary showing the set of peer IDs in each pool. |
get_all_connected_peer_ids |
Retrieves a list of all peer IDs currently connected across all pools. |
update |
Refreshes the connection pools by checking for new and lost connections. |
get_messages |
Retrieves and verifies all messages from a specified P2P network. |
get_added_after_updating |
Retrieves the peers that were added in the last update cycle. |
get_removed_after_updating |
Retrieves the peers that were removed in the last update cycle. |
get_last_token |
Retrieves the last known token for a given peer. |
is_connected |
Checks if a peer is currently connected, optionally in a specific pool. |
get_pool_of |
Gets the pool name for a given connected peer. |
size |
Returns the number of connections in a specific pool or the total number across all pools. |
send |
Sends a direct message to a specific peer. |
subscribe |
Subscribes to a topic/channel on a P2P network. |
unsubscribe |
Unsubscribes from a topic/channel on a P2P network. |
publish |
Publishes a message to a topic/channel on a P2P network. |
Source code in unaiverse/networking/node/connpool.py
Methods:¶
conn_routing_fcn
¶
conn_routing_fcn(connected_peer_infos: list, p2p: P2P)
A placeholder function that must be implemented to route connected peers to the correct pool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connected_peer_infos
|
list
|
A list of dictionaries containing information about connected peers. |
required |
p2p
|
P2P
|
The P2P network object from which the peers were connected. |
required |
Returns:
| Type | Description |
|---|---|
|
A dictionary mapping pool names to a dictionary of peer IDs and their information. |
Source code in unaiverse/networking/node/connpool.py
disconnect
staticmethod
¶
disconnect(p2p: P2P, peer_id: str)
Disconnects from a specific peer on a P2P network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
p2p
|
P2P
|
The P2P network object to use for disconnection. |
required |
peer_id
|
str
|
The peer ID to disconnect from. |
required |
Returns:
| Type | Description |
|---|---|
|
True if the disconnection is successful, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
set_token
¶
Sets the authentication token for the connection pools.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token
|
str
|
The new token string. |
required |
verify_token
¶
Verifies a received token using the provided public key.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token
|
str
|
The token string to verify. |
required |
peer_id
|
str
|
The peer ID associated with the token. |
required |
Returns:
| Type | Description |
|---|---|
|
A tuple containing the node ID and CV hash if the token is valid, otherwise None. |
Source code in unaiverse/networking/node/connpool.py
connect
¶
Connects to a peer on a specified P2P network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
addresses
|
list[str]
|
A list of addresses of the peer to connect to. |
required |
p2p_name
|
str
|
The name of the P2P network to use. |
required |
Returns:
| Type | Description |
|---|---|
|
A tuple containing the peer ID of the connected peer and a boolean indicating if a relay was used. |
Source code in unaiverse/networking/node/connpool.py
add
¶
Adds a connected peer to a specified connection pool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_info
|
dict
|
A dictionary containing information about the peer. |
required |
pool_name
|
str
|
The name of the pool to add the peer to. |
required |
Returns:
| Type | Description |
|---|---|
|
True if the peer is successfully added, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
remove
¶
Removes a peer from its connection pool and disconnects from it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID to remove. |
required |
Returns:
| Type | Description |
|---|---|
|
True if the peer is successfully removed, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
get_all_connected_peer_infos
¶
Retrieves a list of peer information dictionaries for a given pool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pool_name
|
str
|
The name of the pool to query. |
required |
Returns:
| Type | Description |
|---|---|
|
A list of dictionaries, each containing information about a peer in the pool. |
Source code in unaiverse/networking/node/connpool.py
get_pool_status
¶
Returns a dictionary showing the set of peer IDs in each pool.
Returns:
| Type | Description |
|---|---|
|
A dictionary mapping pool names to the set of peer IDs in that pool. |
Source code in unaiverse/networking/node/connpool.py
get_all_connected_peer_ids
¶
Retrieves a list of all peer IDs currently connected across all pools.
Returns:
| Type | Description |
|---|---|
|
A list of all connected peer IDs. |
Source code in unaiverse/networking/node/connpool.py
update
¶
Refreshes the connection pools by checking for new and lost connections.
Returns:
| Type | Description |
|---|---|
|
A tuple containing two dictionaries: one for newly added peers and one for removed peers, both keyed by |
|
|
pool name. |
Source code in unaiverse/networking/node/connpool.py
get_messages
¶
Retrieves and verifies all messages from a specified P2P network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
p2p_name
|
str
|
The name of the P2P network to fetch messages from. |
required |
allowed_not_connected_peers
|
set | None
|
An optional set of peer IDs to allow messages from, even if they are not in the pools. |
None
|
Returns:
| Type | Description |
|---|---|
|
A list of verified and processed message objects. |
Source code in unaiverse/networking/node/connpool.py
get_added_after_updating
¶
Retrieves the peers that were added in the last update cycle.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pool_name
|
str | None
|
The name of a specific pool to query. If None, returns data for all pools. |
None
|
Returns:
| Type | Description |
|---|---|
|
A set of added peer IDs for the specified pool, or a dictionary of sets for all pools. |
Source code in unaiverse/networking/node/connpool.py
get_removed_after_updating
¶
Retrieves the peers that were removed in the last update cycle.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pool_name
|
str | None
|
The name of a specific pool to query. If None, returns data for all pools. |
None
|
Returns:
| Type | Description |
|---|---|
|
A set of removed peer IDs for the specified pool, or a dictionary of sets for all pools. |
Source code in unaiverse/networking/node/connpool.py
get_last_token
¶
Retrieves the last known token for a given peer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to query. |
required |
Returns:
| Type | Description |
|---|---|
|
The token string if found, otherwise None. |
Source code in unaiverse/networking/node/connpool.py
is_connected
¶
Checks if a peer is currently connected, optionally in a specific pool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID to check. |
required |
pool_name
|
str | None
|
An optional pool name to check within. |
None
|
Returns:
| Type | Description |
|---|---|
|
True if the peer is connected, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
get_pool_of
¶
Gets the pool name for a given connected peer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID to query. |
required |
Returns:
| Type | Description |
|---|---|
|
The name of the pool the peer is in. |
Source code in unaiverse/networking/node/connpool.py
size
¶
Returns the number of connections in a specific pool or the total number across all pools.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pool_name
|
str | None
|
An optional pool name to get the size of. If None, returns the total size. |
None
|
Returns:
| Type | Description |
|---|---|
|
The size of the pool or the total number of connections. |
Source code in unaiverse/networking/node/connpool.py
send
¶
send(peer_id: str, channel_trail: str | None, content_type: str, content: bytes | dict | None = None, p2p: P2P | None = None)
Sends a direct message to a specific peer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID to send the message to. |
required |
channel_trail
|
str | None
|
An optional string to append to the channel name. |
required |
content_type
|
str
|
The type of content in the message. |
required |
content
|
bytes | dict | None
|
The message content. |
None
|
p2p
|
P2P | None
|
An optional P2P object to use for sending. If None, it is derived from the peer_id. |
None
|
Returns:
| Type | Description |
|---|---|
|
True if the message is sent successfully, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
subscribe
¶
Subscribes to a topic/channel on a P2P network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID associated with the topic/channel. |
required |
channel
|
str
|
The name of the channel to subscribe to. |
required |
default_p2p_name
|
str | None
|
An optional P2P network name to use if the peer's network is unknown. |
None
|
Returns:
| Type | Description |
|---|---|
|
True if the subscription is successful, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
unsubscribe
¶
Unsubscribes from a topic/channel on a P2P network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID associated with the topic/channel. |
required |
channel
|
str
|
The name of the channel to unsubscribe from. |
required |
Returns:
| Type | Description |
|---|---|
|
True if the unsubscription is successful, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
publish
¶
Publishes a message to a topic/channel on a P2P network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID associated with the topic/channel. |
required |
channel
|
str
|
The name of the channel to publish to. |
required |
content_type
|
str
|
The type of content in the message. |
required |
content
|
bytes | dict | tuple | None
|
The message content. |
None
|
Returns:
| Type | Description |
|---|---|
|
True if the message is published successfully, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
NodeConn
¶
NodeConn(max_connections: int, p2p_u: P2P, p2p_w: P2P, is_world_node: bool, public_key: str, token: str)
Bases: ConnectionPools
Initializes a new instance of the NodeConn class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_connections
|
int
|
The total number of connections the node can handle. |
required |
p2p_u
|
P2P
|
The P2P object for the public network. |
required |
p2p_w
|
P2P
|
The P2P object for the world/private network. |
required |
is_world_node
|
bool
|
A boolean flag indicating if this node is a world node. |
required |
public_key
|
str
|
The public key for token verification. |
required |
token
|
str
|
The node's authentication token. |
required |
Methods:
| Name | Description |
|---|---|
reset_rendezvous_tag |
Resets the rendezvous tag to its initial state. |
conn_routing_fcn |
Routes connected peers to the correct connection pool based on their network and role. |
set_world |
Sets the peer ID of the world node. |
set_inspector |
Sets the peer ID of the inspector. |
get_world_peer_id |
Returns the peer ID of the world node. |
set_addresses_in_peer_info |
Updates the list of addresses for a given peer. |
set_role |
Updates the role of a peer and its associated role-based lists. |
set_world_agents_list |
Sets the list of all world agents based on a provided list of peer information. |
set_world_masters_list |
Sets the list of all world masters based on a provided list of peer information. |
add_to_world_agents_list |
Adds a new world agent to the list. |
add_to_world_masters_list |
Adds a new world master to the list. |
get_added_after_updating |
Retrieves the set of peers added after the last update cycle for specified pools. |
get_removed_after_updating |
Retrieves the set of peers removed after the last update cycle for specified pools. |
size |
Returns the total number of connections across all specified pools. |
is_connected |
Checks if a peer is connected in any of the specified pools. |
is_public |
Checks if a peer is connected via the public network. |
is_world_master |
Checks if a peer is a world master. |
is_world_node |
Checks if a peer is the world node. |
is_in_world |
Checks if a peer is connected to the world network. |
get_role |
Retrieves the role of a given peer. |
get_addrs |
Retrieves the list of addresses for a given peer. |
in_connection_queues |
Checks if a peer ID exists in any connection pool. |
find_addrs_by_role |
Finds all addresses of peers with a specific role. |
count_by_role |
Counts the number of peers with a specific role. |
get_all_connected_peer_infos |
Retrieves a list of all peer info dictionaries for the specified pools. |
set_world_agents_and_world_masters_lists_from_rendezvous |
Updates the lists of world agents and masters using data from the rendezvous topic. |
get_cv_hash_from_last_token |
Retrieves the CV hash from the last token received from a peer. |
remove |
Removes a peer and its associated information from all lists and pools. |
remove_all_world_agents |
Removes all connected world agents from the pools and role lists. |
subscribe |
Subscribes to a channel, defaulting to the world P2P network if a network is not specified. |
get_messages |
Retrieves messages, allowing for messages from known world agents and masters even if not in a connection pool. |
Source code in unaiverse/networking/node/connpool.py
Methods:¶
reset_rendezvous_tag
¶
conn_routing_fcn
¶
conn_routing_fcn(connected_peer_infos: list, p2p: P2P)
Routes connected peers to the correct connection pool based on their network and role.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connected_peer_infos
|
list
|
A list of dictionaries with information about connected peers. |
required |
p2p
|
P2P
|
The P2P network object where the connections were found. |
required |
Returns:
| Type | Description |
|---|---|
|
A dictionary mapping pool names to a dictionary of peer IDs and their information. |
Source code in unaiverse/networking/node/connpool.py
set_world
¶
Sets the peer ID of the world node.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
world_peer_id
|
str | None
|
The peer ID of the world node, or None to clear it. |
required |
set_inspector
¶
Sets the peer ID of the inspector.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inspector_peer_id
|
str | None
|
The peer ID of the inspector node. |
required |
get_world_peer_id
¶
Returns the peer ID of the world node.
Returns:
| Type | Description |
|---|---|
|
The world node's peer ID. |
set_addresses_in_peer_info
¶
Updates the list of addresses for a given peer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to update. |
required | |
addresses
|
A new list of addresses for the peer. |
required |
Source code in unaiverse/networking/node/connpool.py
set_role
¶
Updates the role of a peer and its associated role-based lists.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to update. |
required | |
new_role
|
int
|
The new role for the peer. |
required |
Source code in unaiverse/networking/node/connpool.py
set_world_agents_list
¶
Sets the list of all world agents based on a provided list of peer information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
world_agents_list_peer_infos
|
list[dict] | None
|
A list of dictionaries containing peer information for world agents. |
required |
Source code in unaiverse/networking/node/connpool.py
set_world_masters_list
¶
Sets the list of all world masters based on a provided list of peer information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
world_masters_list_peer_infos
|
list[dict] | None
|
A list of dictionaries containing peer information for world masters. |
required |
Source code in unaiverse/networking/node/connpool.py
add_to_world_agents_list
¶
Adds a new world agent to the list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID of the new agent. |
required |
addrs
|
list[str]
|
A list of addresses for the new agent. |
required |
role
|
int
|
The role assigned to the agent. |
-1
|
Source code in unaiverse/networking/node/connpool.py
add_to_world_masters_list
¶
Adds a new world master to the list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID of the new master. |
required |
addrs
|
list[str]
|
A list of addresses for the new master. |
required |
role
|
int
|
The role assigned to the master. |
-1
|
Source code in unaiverse/networking/node/connpool.py
get_added_after_updating
¶
Retrieves the set of peers added after the last update cycle for specified pools.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pool_names
|
list[str] | None
|
A list of pool names to check. If None, checks all pools. |
None
|
Returns:
| Type | Description |
|---|---|
|
A dictionary mapping pool names to sets of added peer IDs, or a single set if only one pool is specified. |
Source code in unaiverse/networking/node/connpool.py
get_removed_after_updating
¶
Retrieves the set of peers removed after the last update cycle for specified pools.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pool_names
|
list[str] | None
|
A list of pool names to check. If None, checks all pools. |
None
|
Returns:
| Type | Description |
|---|---|
|
A dictionary mapping pool names to sets of removed peer IDs, or a single set if only one pool is specified. |
Source code in unaiverse/networking/node/connpool.py
size
¶
Returns the total number of connections across all specified pools.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pool_names
|
list[str] | None
|
A list of pool names to sum the size of. If None, returns the total size of all pools. |
None
|
Returns:
| Type | Description |
|---|---|
|
The total number of connections. |
Source code in unaiverse/networking/node/connpool.py
is_connected
¶
Checks if a peer is connected in any of the specified pools.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID to check. |
required |
pool_names
|
list[str] | None
|
A list of pool names to search within. If None, searches all pools. |
None
|
Returns:
| Type | Description |
|---|---|
|
True if the peer is found in any of the pools, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
is_public
¶
Checks if a peer is connected via the public network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to check. |
required |
Returns:
| Type | Description |
|---|---|
|
True if the peer is in a public pool, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
is_world_master
¶
Checks if a peer is a world master.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to check. |
required |
Returns:
| Type | Description |
|---|---|
|
True if the peer is in a world master pool, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
is_world_node
¶
Checks if a peer is the world node.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to check. |
required |
Returns:
| Type | Description |
|---|---|
|
True if the peer is in a world node pool, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
is_in_world
¶
Checks if a peer is connected to the world network.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to check. |
required |
Returns:
| Type | Description |
|---|---|
|
True if the peer is in any world pool, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
get_role
¶
Retrieves the role of a given peer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to query. |
required |
Returns:
| Type | Description |
|---|---|
|
The integer role of the peer. |
Source code in unaiverse/networking/node/connpool.py
get_addrs
¶
Retrieves the list of addresses for a given peer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to query. |
required |
Returns:
| Type | Description |
|---|---|
|
A list of addresses for the peer. |
Source code in unaiverse/networking/node/connpool.py
in_connection_queues
¶
Checks if a peer ID exists in any connection pool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to check. |
required |
Returns:
| Type | Description |
|---|---|
|
True if the peer is found in any pool, otherwise False. |
Source code in unaiverse/networking/node/connpool.py
find_addrs_by_role
¶
Finds all addresses of peers with a specific role.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
role
|
The integer role to search for. |
required | |
return_peer_ids_too
|
bool
|
A boolean to also return the peer IDs. |
False
|
Returns:
| Type | Description |
|---|---|
|
A list of lists of addresses, and optionally a list of peer IDs. |
Source code in unaiverse/networking/node/connpool.py
count_by_role
¶
Counts the number of peers with a specific role.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
role
|
int
|
The integer role to count. |
required |
Returns:
| Type | Description |
|---|---|
|
The number of peers with that role. |
Source code in unaiverse/networking/node/connpool.py
get_all_connected_peer_infos
¶
Retrieves a list of all peer info dictionaries for the specified pools.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pool_names
|
list[str] | set[str]
|
A list or set of pool names to query. |
required |
Returns:
| Type | Description |
|---|---|
|
A list of dictionaries containing peer information. |
Source code in unaiverse/networking/node/connpool.py
set_world_agents_and_world_masters_lists_from_rendezvous
¶
Updates the lists of world agents and masters using data from the rendezvous topic.
Source code in unaiverse/networking/node/connpool.py
get_cv_hash_from_last_token
¶
Retrieves the CV hash from the last token received from a peer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
The peer ID to query. |
required |
Returns:
| Type | Description |
|---|---|
|
The CV hash string, or None if not found. |
Source code in unaiverse/networking/node/connpool.py
remove
¶
Removes a peer and its associated information from all lists and pools.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID to remove. |
required |
Source code in unaiverse/networking/node/connpool.py
remove_all_world_agents
¶
Removes all connected world agents from the pools and role lists.
Source code in unaiverse/networking/node/connpool.py
subscribe
¶
Subscribes to a channel, defaulting to the world P2P network if a network is not specified.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
peer_id
|
str
|
The peer ID associated with the channel. |
required |
channel
|
str
|
The channel to subscribe to. |
required |
default_p2p_name
|
str | None
|
An optional P2P name to use for the subscription. |
None
|
Returns:
| Type | Description |
|---|---|
|
True if successful, False otherwise. |
Source code in unaiverse/networking/node/connpool.py
get_messages
¶
Retrieves messages, allowing for messages from known world agents and masters even if not in a connection pool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
p2p_name
|
str
|
The name of the P2P network to get messages from. |
required |
allowed_not_connected_peers
|
set | None
|
This parameter is ignored in this implementation. |
None
|
Returns:
| Type | Description |
|---|---|
|
A list of verified and processed message objects. |