From 1d6f56c6766651f94060f101aaaa5e2933e1fe19 Mon Sep 17 00:00:00 2001 From: HelloZeroNet Date: Sat, 5 Mar 2016 09:57:30 +0100 Subject: [PATCH] Rev938, Disable publish on incoming older content update to avoid network spam --- src/Config.py | 2 +- src/Content/ContentManager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config.py b/src/Config.py index 553c689d..1dee9440 100644 --- a/src/Config.py +++ b/src/Config.py @@ -8,7 +8,7 @@ class Config(object): def __init__(self, argv): self.version = "0.3.6" - self.rev = 936 + self.rev = 938 self.argv = argv self.action = None self.config_file = "zeronet.conf" diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py index f3f335d6..101642a0 100644 --- a/src/Content/ContentManager.py +++ b/src/Content/ContentManager.py @@ -563,7 +563,7 @@ class ContentManager(object): "We have newer %s (Our: %s, Sent: %s)" % (inner_path, old_content["modified"], new_content["modified"]) ) - gevent.spawn(self.site.publish, inner_path=inner_path) # Try to fix the broken peers + # gevent.spawn(self.site.publish, inner_path=inner_path) # Try to fix the broken peers return False if new_content["modified"] > time.time() + 60 * 60 * 24: # Content modified in the far future (allow 1 day+) self.log.error("%s modify is in the future!" % inner_path)