Query and send more hashfield

This commit is contained in:
shortcutme 2016-11-07 23:42:13 +01:00
parent 30a2116abf
commit 713a2f88a9

View file

@ -933,7 +933,7 @@ class Site(object):
self.log.debug("Connected: %s, Need to close: %s, Closed: %s" % (len(connected_peers), need_to_close, closed)) self.log.debug("Connected: %s, Need to close: %s, Closed: %s" % (len(connected_peers), need_to_close, closed))
# Send hashfield to peers # Send hashfield to peers
def sendMyHashfield(self, limit=3): def sendMyHashfield(self, limit=5):
if not self.content_manager.hashfield: # No optional files if not self.content_manager.hashfield: # No optional files
return False return False
@ -949,7 +949,7 @@ class Site(object):
return sent return sent
# Update hashfield # Update hashfield
def updateHashfield(self, limit=3): def updateHashfield(self, limit=5):
# Return if no optional files # Return if no optional files
if not self.content_manager.hashfield and not self.content_manager.contents.get("content.json", {}).get("files_optional"): if not self.content_manager.hashfield and not self.content_manager.contents.get("content.json", {}).get("files_optional"):
return False return False