Bitcoin ABC  0.22.12
P2P Digital Currency
Classes | Functions | Variables
main.cpp File Reference
#include <chainparams.h>
#include <clientversion.h>
#include <fs.h>
#include <logging.h>
#include <protocol.h>
#include <seeder/bitcoin.h>
#include <seeder/db.h>
#include <seeder/dns.h>
#include <streams.h>
#include <util/strencodings.h>
#include <util/system.h>
#include <util/time.h>
#include <util/translation.h>
#include <algorithm>
#include <atomic>
#include <cinttypes>
#include <csignal>
#include <cstdlib>
#include <functional>
#include <pthread.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

class  CDnsSeedOpts
 
class  CDnsThread
 
struct  CDnsThread::FlagSpecificData
 

Functions

void * ThreadCrawler (void *data)
 
uint32_t GetIPList (void *thread, char *requestedHostname, addr_t *addr, uint32_t max, uint32_t ipv4, uint32_t ipv6)
 
void * ThreadDNS (void *arg)
 
int StatCompare (const CAddrReport &a, const CAddrReport &b)
 
void * ThreadDumper (void *)
 
void * ThreadStats (void *)
 
void * ThreadSeeder (void *)
 
int main (int argc, char **argv)
 

Variables

const std::function< std::string(const char *)> G_TRANSLATION_FUN = nullptr
 Translate string to current locale using Qt. More...
 
static const int CONTINUE_EXECUTION = -1
 
static const int DEFAULT_NUM_THREADS = 96
 
static const int DEFAULT_PORT = 53
 
static const int DEFAULT_NUM_DNS_THREADS = 4
 
static const bool DEFAULT_WIPE_BAN = false
 
static const bool DEFAULT_WIPE_IGNORE = false
 
static const std::string DEFAULT_EMAIL = ""
 
static const std::string DEFAULT_NAMESERVER = ""
 
static const std::string DEFAULT_HOST = ""
 
static const std::string DEFAULT_TOR_PROXY = ""
 
static const std::string DEFAULT_IPV4_PROXY = ""
 
static const std::string DEFAULT_IPV6_PROXY = ""
 
CAddrDb db
 
std::vector< CDnsThread * > dnsThread
 
static const unsigned int MAX_HOSTS_PER_SEED = 128
 

Function Documentation

◆ GetIPList()

uint32_t GetIPList ( void *  thread,
char *  requestedHostname,
addr_t addr,
uint32_t  max,
uint32_t  ipv4,
uint32_t  ipv6 
)

Definition at line 298 of file main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 474 of file main.cpp.

Here is the call graph for this function:

◆ StatCompare()

int StatCompare ( const CAddrReport a,
const CAddrReport b 
)

Definition at line 359 of file main.cpp.

Here is the caller graph for this function:

◆ ThreadCrawler()

void* ThreadCrawler ( void *  data)

Definition at line 169 of file main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ThreadDNS()

void* ThreadDNS ( void *  arg)

Definition at line 353 of file main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ThreadDumper()

void* ThreadDumper ( void *  )

Definition at line 371 of file main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ThreadSeeder()

void* ThreadSeeder ( void *  )

Definition at line 459 of file main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ThreadStats()

void* ThreadStats ( void *  )

Definition at line 422 of file main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ CONTINUE_EXECUTION

const int CONTINUE_EXECUTION = -1
static

Definition at line 29 of file main.cpp.

◆ db

CAddrDb db

Definition at line 167 of file main.cpp.

◆ DEFAULT_EMAIL

const std::string DEFAULT_EMAIL = ""
static

Definition at line 36 of file main.cpp.

◆ DEFAULT_HOST

const std::string DEFAULT_HOST = ""
static

Definition at line 38 of file main.cpp.

◆ DEFAULT_IPV4_PROXY

const std::string DEFAULT_IPV4_PROXY = ""
static

Definition at line 40 of file main.cpp.

◆ DEFAULT_IPV6_PROXY

const std::string DEFAULT_IPV6_PROXY = ""
static

Definition at line 41 of file main.cpp.

◆ DEFAULT_NAMESERVER

const std::string DEFAULT_NAMESERVER = ""
static

Definition at line 37 of file main.cpp.

◆ DEFAULT_NUM_DNS_THREADS

const int DEFAULT_NUM_DNS_THREADS = 4
static

Definition at line 33 of file main.cpp.

◆ DEFAULT_NUM_THREADS

const int DEFAULT_NUM_THREADS = 96
static

Definition at line 31 of file main.cpp.

◆ DEFAULT_PORT

const int DEFAULT_PORT = 53
static

Definition at line 32 of file main.cpp.

◆ DEFAULT_TOR_PROXY

const std::string DEFAULT_TOR_PROXY = ""
static

Definition at line 39 of file main.cpp.

◆ DEFAULT_WIPE_BAN

const bool DEFAULT_WIPE_BAN = false
static

Definition at line 34 of file main.cpp.

◆ DEFAULT_WIPE_IGNORE

const bool DEFAULT_WIPE_IGNORE = false
static

Definition at line 35 of file main.cpp.

◆ dnsThread

std::vector<CDnsThread *> dnsThread

Definition at line 351 of file main.cpp.

◆ G_TRANSLATION_FUN

const std::function<std::string(const char *)> G_TRANSLATION_FUN = nullptr

Translate string to current locale using Qt.

Translate a message to the native language of the user.

Definition at line 27 of file main.cpp.

◆ MAX_HOSTS_PER_SEED

const unsigned int MAX_HOSTS_PER_SEED = 128
static

Definition at line 457 of file main.cpp.