added changes from future commits to last passing bmuller commit

This commit is contained in:
Alex Haynes
2019-04-17 20:21:59 -04:00
parent c5289952ee
commit d5c7cc7cb7
9 changed files with 115 additions and 12 deletions

View File

@ -9,6 +9,8 @@ class KadmeliaContentRouter(IContentRouting):
it also announces it, otherwise it is just kept in the local
accounting of which objects are being provided.
"""
# the DHT finds the closest peers to `key` using the `FIND_NODE` RPC
# then sends a `ADD_PROVIDER` RPC with its own `PeerInfo` to each of these peers.
pass
def find_provider_iter(self, cid, count):

View File

@ -5,6 +5,7 @@ from libp2p.peer.peerdata import PeerData
class KadmeliaPeerRouter(IPeerRouting):
# pylint: disable=too-few-public-methods
def __init__(self, dht_server):
self.server = dht_server