Expand description
Functions§
- add_
connections - Add additional connections to a given node.
- add_
well_ known_ node - Add a node to the set of well known nodes. If the node is already claimed, the owner will be updated and keep the existing additional connection unchanged.
- claim_
node - A given node can be claimed by anyone. The owner should be the first to know its PeerId, so claim it right away!
- remove_
claim - A claim can be removed by its owner and get back the reservation. The additional connections are also removed. You can’t remove a claim on well known nodes, as it needs to reach consensus among the network participants.
- remove_
connections - Remove additional connections of a given node.
- remove_
well_ known_ node - Remove a node from the set of well known nodes. The ownership and additional connections of the node will also be removed.
- reset_
well_ known_ nodes - Reset all the well known nodes. This will not remove the ownership and additional connections for the removed nodes. The node owner can perform further cleaning if they decide to leave the network.
- swap_
well_ known_ node - Swap a well known node to another. Both the ownership and additional connections stay untouched.
- transfer_
node - A node can be transferred to a new owner.