Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
#include <walletinitinterface.h> | #include <walletinitinterface.h> | ||||
#include <boost/algorithm/string/classification.hpp> | #include <boost/algorithm/string/classification.hpp> | ||||
#include <boost/algorithm/string/replace.hpp> | #include <boost/algorithm/string/replace.hpp> | ||||
#include <boost/algorithm/string/split.hpp> | #include <boost/algorithm/string/split.hpp> | ||||
#include <boost/thread.hpp> | #include <boost/thread.hpp> | ||||
#if ENABLE_ZMQ | #if ENABLE_ZMQ | ||||
#include <zmq/zmqabstractnotifier.h> | |||||
#include <zmq/zmqnotificationinterface.h> | #include <zmq/zmqnotificationinterface.h> | ||||
#include <zmq/zmqrpc.h> | #include <zmq/zmqrpc.h> | ||||
#endif | #endif | ||||
#ifndef WIN32 | #ifndef WIN32 | ||||
#include <attributes.h> | #include <attributes.h> | ||||
#include <cerrno> | #include <cerrno> | ||||
#include <csignal> | #include <csignal> | ||||
▲ Show 20 Lines • Show All 683 Lines • ▼ Show 20 Lines | gArgs.AddArg("-zmqpubhashtx=<address>", | ||||
"Enable publish hash transaction in <address>", | "Enable publish hash transaction in <address>", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::ZMQ); | ArgsManager::ALLOW_ANY, OptionsCategory::ZMQ); | ||||
gArgs.AddArg("-zmqpubrawblock=<address>", | gArgs.AddArg("-zmqpubrawblock=<address>", | ||||
"Enable publish raw block in <address>", | "Enable publish raw block in <address>", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::ZMQ); | ArgsManager::ALLOW_ANY, OptionsCategory::ZMQ); | ||||
gArgs.AddArg("-zmqpubrawtx=<address>", | gArgs.AddArg("-zmqpubrawtx=<address>", | ||||
"Enable publish raw transaction in <address>", | "Enable publish raw transaction in <address>", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::ZMQ); | ArgsManager::ALLOW_ANY, OptionsCategory::ZMQ); | ||||
gArgs.AddArg("-zmqpubhashblockhwm=<n>", | |||||
strprintf("Set publish hash block outbound message high water " | |||||
"mark (default: %d)", | |||||
CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM), | |||||
false, OptionsCategory::ZMQ); | |||||
gArgs.AddArg("-zmqpubhashtxhwm=<n>", | |||||
strprintf("Set publish hash transaction outbound message high " | |||||
"water mark (default: %d)", | |||||
CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM), | |||||
false, OptionsCategory::ZMQ); | |||||
gArgs.AddArg("-zmqpubrawblockhwm=<n>", | |||||
strprintf("Set publish raw block outbound message high water " | |||||
"mark (default: %d)", | |||||
CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM), | |||||
false, OptionsCategory::ZMQ); | |||||
gArgs.AddArg("-zmqpubrawtxhwm=<n>", | |||||
strprintf("Set publish raw transaction outbound message high " | |||||
"water mark (default: %d)", | |||||
CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM), | |||||
false, OptionsCategory::ZMQ); | |||||
#else | #else | ||||
hidden_args.emplace_back("-zmqpubhashblock=<address>"); | hidden_args.emplace_back("-zmqpubhashblock=<address>"); | ||||
hidden_args.emplace_back("-zmqpubhashtx=<address>"); | hidden_args.emplace_back("-zmqpubhashtx=<address>"); | ||||
hidden_args.emplace_back("-zmqpubrawblock=<address>"); | hidden_args.emplace_back("-zmqpubrawblock=<address>"); | ||||
hidden_args.emplace_back("-zmqpubrawtx=<address>"); | hidden_args.emplace_back("-zmqpubrawtx=<address>"); | ||||
hidden_args.emplace_back("-zmqpubhashblockhwm=<n>"); | |||||
hidden_args.emplace_back("-zmqpubhashtxhwm=<n>"); | |||||
hidden_args.emplace_back("-zmqpubrawblockhwm=<n>"); | |||||
hidden_args.emplace_back("-zmqpubrawtxhwm=<n>"); | |||||
#endif | #endif | ||||
gArgs.AddArg( | gArgs.AddArg( | ||||
"-checkblocks=<n>", | "-checkblocks=<n>", | ||||
strprintf("How many blocks to check at startup (default: %u, 0 = all)", | strprintf("How many blocks to check at startup (default: %u, 0 = all)", | ||||
DEFAULT_CHECKBLOCKS), | DEFAULT_CHECKBLOCKS), | ||||
ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, | ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, | ||||
OptionsCategory::DEBUG_TEST); | OptionsCategory::DEBUG_TEST); | ||||
▲ Show 20 Lines • Show All 2,000 Lines • Show Last 20 Lines |