Bitcoin
Functions | Variables
makeseeds Namespace Reference

Functions

def parseline (line)
 
def filtermultiport (ips)
 
def filterbyasn (ips, max_per_asn, max_total)
 
def main ()
 

Variables

int NSEEDS = 512
 
int MAX_SEEDS_PER_ASN = 2
 
int MIN_BLOCKS = 337600
 
dictionary SUSPICIOUS_HOSTS
 
 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.14.(0|1|2|99)/|/Satoshi:0.15.(0|1|2|99)|/Satoshi:0.16.(0|1|2|99)/)$")
 

Function Documentation

◆ filterbyasn()

def makeseeds.filterbyasn (   ips,
  max_per_asn,
  max_total 
)

◆ filtermultiport()

def makeseeds.filtermultiport (   ips)
Filter out hosts with more nodes per IP

◆ main()

def makeseeds.main ( void  )

◆ parseline()

def makeseeds.parseline (   line)

Variable Documentation

◆ MAX_SEEDS_PER_ASN

int makeseeds.MAX_SEEDS_PER_ASN = 2

◆ MIN_BLOCKS

int makeseeds.MIN_BLOCKS = 337600

◆ NSEEDS

int makeseeds.NSEEDS = 512

◆ PATTERN_AGENT

makeseeds.PATTERN_AGENT = re.compile(r"^(/Satoshi:0.14.(0|1|2|99)/|/Satoshi:0.15.(0|1|2|99)|/Satoshi:0.16.(0|1|2|99)/)$")

◆ PATTERN_IPV4

makeseeds.PATTERN_IPV4 = re.compile(r"^((\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})):(\d+)$")

◆ PATTERN_IPV6

makeseeds.PATTERN_IPV6 = re.compile(r"^\[([0-9a-z:]+)\]:(\d+)$")

◆ PATTERN_ONION

makeseeds.PATTERN_ONION = re.compile(r"^([abcdefghijklmnopqrstuvwxyz234567]{16}\.onion):(\d+)$")

◆ SUSPICIOUS_HOSTS

dictionary makeseeds.SUSPICIOUS_HOSTS
Initial value:
1 = {
2  "130.211.129.106", "178.63.107.226",
3  "83.81.130.26", "88.198.17.7", "148.251.238.178", "176.9.46.6",
4  "54.173.72.127", "54.174.10.182", "54.183.64.54", "54.194.231.211",
5  "54.66.214.167", "54.66.220.137", "54.67.33.14", "54.77.251.214",
6  "54.94.195.96", "54.94.200.247"
7 }