Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/main.cpp
#include "bitcoin.h" | #include <clientversion.h> | ||||
#include "clientversion.h" | #include <logging.h> | ||||
#include "db.h" | #include <protocol.h> | ||||
#include "dns.h" | #include <seeder/bitcoin.h> | ||||
#include "logging.h" | #include <seeder/db.h> | ||||
#include "protocol.h" | #include <seeder/dns.h> | ||||
#include "streams.h" | #include <streams.h> | ||||
#include <algorithm> | #include <algorithm> | ||||
#include <atomic> | #include <atomic> | ||||
#include <cinttypes> | #include <cinttypes> | ||||
#include <csignal> | #include <csignal> | ||||
#include <cstdio> | #include <cstdio> | ||||
#include <cstdlib> | #include <cstdlib> | ||||
#include <getopt.h> | #include <getopt.h> | ||||
▲ Show 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | void ParseCommandLine(int argc, char **argv) { | ||||
filter_whitelist.insert(NODE_NETWORK | NODE_BLOOM | NODE_XTHIN); | filter_whitelist.insert(NODE_NETWORK | NODE_BLOOM | NODE_XTHIN); | ||||
} | } | ||||
if (host != nullptr && ns == nullptr) showHelp = true; | if (host != nullptr && ns == nullptr) showHelp = true; | ||||
if (showHelp) fprintf(stderr, help, argv[0]); | if (showHelp) fprintf(stderr, help, argv[0]); | ||||
} | } | ||||
}; | }; | ||||
extern "C" { | extern "C" { | ||||
#include "dns.h" | #include <seeder/dns.h> | ||||
} | } | ||||
CAddrDb db; | CAddrDb db; | ||||
extern "C" void *ThreadCrawler(void *data) { | extern "C" void *ThreadCrawler(void *data) { | ||||
int *nThreads = (int *)data; | int *nThreads = (int *)data; | ||||
do { | do { | ||||
std::vector<CServiceResult> ips; | std::vector<CServiceResult> ips; | ||||
▲ Show 20 Lines • Show All 397 Lines • Show Last 20 Lines |