Site has optional files if any of the peers has hashfield
This commit is contained in:
parent
7eca3f4bc5
commit
bfb7392198
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ class ContentDbPlugin(object):
|
||||||
if row["address"].endswith(".onion"):
|
if row["address"].endswith(".onion"):
|
||||||
peer.reputation = peer.reputation / 2 # Onion peers less likely working
|
peer.reputation = peer.reputation / 2 # Onion peers less likely working
|
||||||
num += 1
|
num += 1
|
||||||
|
if num_hashfield:
|
||||||
|
site.content_manager.has_optional_files = True
|
||||||
site.log.debug("%s peers (%s with hashfield) loaded in %.3fs" % (num, num_hashfield, time.time() - s))
|
site.log.debug("%s peers (%s with hashfield) loaded in %.3fs" % (num, num_hashfield, time.time() - s))
|
||||||
|
|
||||||
def iteratePeers(self, site):
|
def iteratePeers(self, site):
|
||||||
|
|
Loading…
Reference in a new issue