3.0.ipv8.test.dht.test_community
Classes
Module Contents
- class 3.0.ipv8.test.dht.test_community.TestDHTCommunity
Bases:
3.0.ipv8.test.dht.base.TestDHTBase[3.0.ipv8.dht.community.DHTCommunity]Tests for the DHT Community.
- create_node(*args, **kwargs) 3.0.ipv8.test.mocking.ipv8.MockIPv8
Create a new node that runs the DHTCommunity with a curve25519 key.
- class 3.0.ipv8.test.dht.test_community.TestDHTCommunityXL
Bases:
3.0.ipv8.test.dht.base.TestDHTBase[3.0.ipv8.dht.community.DHTCommunity]Fat tests for the DHT Community.
- create_node(*args, **kwargs) 3.0.ipv8.test.mocking.ipv8.MockIPv8
Create a new node that runs the DHTCommunity with a curve25519 key.
- get_closest_nodes(node_id: bytes, max_nodes: int = 8) collections.abc.Iterable[3.0.ipv8.test.mocking.ipv8.MockIPv8]
Get the nodes closest to a given node id.