Skip to content

Commit

Permalink
Stop waiting a set time for microdescriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
ANURADHAJHA99 committed Apr 8, 2020
1 parent c225cdd commit 307ac85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/chutney/TorNet.py
Expand Up @@ -957,7 +957,7 @@ def getOnionService(self):
MIN_TOR_VERSION_FOR_MICRODESC_FIX = 'Tor 0.4'

MIN_TIME_FOR_COMPLETE_CONSENSUS = V3_AUTH_VOTING_INTERVAL*1.5
MIN_START_TIME_LEGACY = MIN_TIME_FOR_COMPLETE_CONSENSUS + 20
MIN_START_TIME_LEGACY = 0
MIN_START_TIME_RECENT = 0

def getMinStartTime(self):
Expand All @@ -983,7 +983,7 @@ def getMinStartTime(self):
else:
return LocalNodeController.MIN_START_TIME_RECENT

NODE_WAIT_FOR_UNCHECKED_DIR_INFO = 10
NODE_WAIT_FOR_UNCHECKED_DIR_INFO = 0
HS_WAIT_FOR_UNCHECKED_DIR_INFO = V3_AUTH_VOTING_INTERVAL + 10

def getUncheckedDirInfoWaitTime(self):
Expand Down Expand Up @@ -1328,7 +1328,7 @@ def getNodePublishedDirInfoPaths(self):

def getNodeDirInfoStatusPattern(self, dir_format):
"""Returns a regular expression pattern for finding this node's entry
in a dir_format file and returning None if nickname or ed25519_id key not found.
in a dir_format file and returning None if nickname or ed25519_key not found.
"""
nickname = self.getNick()
ed25519_key = self.getEd25519Id()
Expand Down

0 comments on commit 307ac85

Please sign in to comment.