Bitcoin
|
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)/)$") | |
def makeseeds.filterbyasn | ( | ips, | |
max_per_asn, | |||
max_total | |||
) |
def makeseeds.filtermultiport | ( | ips | ) |
Filter out hosts with more nodes per IP
def makeseeds.main | ( | void | ) |
def makeseeds.parseline | ( | line | ) |
int makeseeds.MAX_SEEDS_PER_ASN = 2 |
int makeseeds.MIN_BLOCKS = 337600 |
int makeseeds.NSEEDS = 512 |
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)/)$") |
makeseeds.PATTERN_IPV4 = re.compile(r"^((\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})):(\d+)$") |
makeseeds.PATTERN_IPV6 = re.compile(r"^\[([0-9a-z:]+)\]:(\d+)$") |
makeseeds.PATTERN_ONION = re.compile(r"^([abcdefghijklmnopqrstuvwxyz234567]{16}\.onion):(\d+)$") |
dictionary makeseeds.SUSPICIOUS_HOSTS |