]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/introducer/server.py
introducer.client: use integer seqnums, not time-based. Closes #1767.
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / introducer / server.py
index 1a4b76800e237aad688bd38dae5a5a4c9aeec334..adc68af3a819c379c3fade1e5b067fcd89db0091 100644 (file)
@@ -220,8 +220,9 @@ class IntroducerService(service.MultiService, Referenceable):
             else:
                 if "seqnum" in old_ann:
                     # must beat previous sequence number to replace
-                    if "seqnum" not in ann:
-                        self.log("not replacing old ann, no seqnum",
+                    if ("seqnum" not in ann
+                        or not isinstance(ann["seqnum"], (int,long))):
+                        self.log("not replacing old ann, no valid seqnum",
                                  level=log.NOISY, umid="ySbaVw")
                         self._debug_counts["inbound_no_seqnum"] += 1
                         return