13 if (
auto value{argsman.
GetIntArg(
"-maxorphantx")}) {
15 *value, 0, std::numeric_limits<uint32_t>::max()));
18 if (
auto value{argsman.
GetIntArg(
"-blockreconstructionextratxn")}) {
20 *value, 0, std::numeric_limits<uint32_t>::max()));
23 if (
auto value{argsman.
GetBoolArg(
"-capturemessages")}) {
27 if (
auto value{argsman.
GetBoolArg(
"-blocksonly")}) {
31 if (
auto value{argsman.
GetIntArg(
"-maxaddrtosend")}) {
35 if (
auto value{argsman.
GetIntArg(
"-avacooldown")}) {
39 if (
auto value{argsman.
GetIntArg(
"-avalanchepeerreplacementcooldown")}) {
41 std::max(int64_t{0}, *value);
int64_t GetIntArg(const std::string &strArg, int64_t nDefault) const
Return integer argument or default value.
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
void ApplyArgsManOptions(const ArgsManager &args, const Config &config, BlockFitter::Options &options)
Apply options from ArgsManager to BlockFitter options.
int64_t avalanche_cooldown
Minimum time between two AVAPOLL messages.
size_t max_addr_to_send
Number of addresses a node may send in an ADDR message.
uint32_t max_extra_txs
Number of non-mempool transactions to keep around for block reconstruction.
uint32_t max_orphan_txs
Maximum number of orphan transactions kept in memory.
int64_t avalanche_peer_replacement_cooldown
Minimum time before we will consider replacing a finalized proof with a conflicting one.
bool ignore_incoming_txs
Whether this node is running in -blocksonly mode.
bool capture_messages
Whether all P2P messages are captured to disk.