2015-08-20 17:27:15 +02:00
|
|
|
from twisted.internet import defer
|
|
|
|
|
|
|
|
|
|
|
|
class DummyPeerFinder(object):
|
|
|
|
"""This class finds peers which have announced to the DHT that they have certain blobs"""
|
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def run_manage_loop(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def stop(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def find_peers_for_blob(self, blob_hash):
|
|
|
|
return defer.succeed([])
|
|
|
|
|
|
|
|
def get_most_popular_hashes(self, num_to_return):
|
2016-12-14 00:16:12 +01:00
|
|
|
return []
|