Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/main.cpp
Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
int main(int argc, char **argv) { | int main(int argc, char **argv) { | ||||
// The logger dump everything on the console by default. | // The logger dump everything on the console by default. | ||||
LogInstance().m_print_to_console = true; | LogInstance().m_print_to_console = true; | ||||
signal(SIGPIPE, SIG_IGN); | signal(SIGPIPE, SIG_IGN); | ||||
setbuf(stdout, nullptr); | setbuf(stdout, nullptr); | ||||
CDnsSeedOpts opts; | CDnsSeedOpts opts(&gArgs); | ||||
opts.SetupSeederArgs(); | |||||
int parseResults = | int parseResults = | ||||
opts.ParseCommandLine(argc, const_cast<const char **>(argv)); | opts.ParseCommandLine(argc, const_cast<const char **>(argv)); | ||||
if (parseResults != CONTINUE_EXECUTION) { | if (parseResults != CONTINUE_EXECUTION) { | ||||
return parseResults; | return parseResults; | ||||
} | } | ||||
tfm::format(std::cout, "Supporting whitelisted filters: "); | tfm::format(std::cout, "Supporting whitelisted filters: "); | ||||
for (std::set<uint64_t>::const_iterator it = opts.filter_whitelist.begin(); | for (std::set<uint64_t>::const_iterator it = opts.filter_whitelist.begin(); | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |