Skip to content

Commit

Permalink
Update hardcoded DNS seeds, upgrade OpenSSL version and bump version (#…
Browse files Browse the repository at this point in the history
…44)

* Update hardcoded DNS seeds

* Upgrade OpenSSL version to 1.1.0

* Bump version
  • Loading branch information
metalicjames committed May 13, 2018
1 parent 2e869b3 commit 5522e0c
Show file tree
Hide file tree
Showing 6 changed files with 989 additions and 3,134 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -2,7 +2,7 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 13)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_REVISION, 1)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2018)
Expand Down
8 changes: 4 additions & 4 deletions contrib/seeds/makeseeds.py
Expand Up @@ -10,7 +10,7 @@

MAX_SEEDS_PER_ASN=2

MIN_BLOCKS = 337600
MIN_BLOCKS = 927382

# These are hosts that have been observed to be behaving strangely (e.g.
# aggressively connecting to every node).
Expand All @@ -30,7 +30,7 @@
PATTERN_IPV4 = re.compile(r"^((\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})):(\d+)$")
PATTERN_IPV6 = re.compile(r"^\[([0-9a-z:]+)\]:(\d+)$")
PATTERN_ONION = re.compile(r"^([abcdefghijklmnopqrstuvwxyz234567]{16}\.onion):(\d+)$")
PATTERN_AGENT = re.compile(r"^(/Satoshi:0.13.(1|2|99)/|/Satoshi:0.14.(0|1|2|99)/|/Satoshi:0.15.(0|1|2|99)/)$")
PATTERN_AGENT = re.compile(r"^(/Satoshi:0.11.(0|0.1|0.2|1)/|/Satoshi:0.12.0/|/Satoshi:0.13.0/)$")

def parseline(line):
sline = line.split()
Expand Down Expand Up @@ -149,8 +149,8 @@ def main():
ips = [ip for ip in ips if ip['blocks'] >= MIN_BLOCKS]
# Require service bit 1.
ips = [ip for ip in ips if (ip['service'] & 1) == 1]
# Require at least 50% 30-day uptime.
ips = [ip for ip in ips if ip['uptime'] > 50]
# Require at least 15% 30-day uptime.
ips = [ip for ip in ips if ip['uptime'] > 15]
# Require a known and recent user agent.
ips = [ip for ip in ips if PATTERN_AGENT.match(ip['agent'])]
# Sort by availability (and use last success as tie breaker)
Expand Down

0 comments on commit 5522e0c

Please sign in to comment.