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")}) {
44 if (
auto value{
argsman.GetBoolArg(
"-avalanchepreconsensus")}) {
std::optional< bilingual_str > ApplyArgsManOptions(const ArgsManager &argsman, const CChainParams &chainparams, MemPoolOptions &mempool_opts)
Overlay the options set in argsman on top of corresponding members in mempool_opts.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
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.
bool avalanche_preconsensus
Whether this node has enabled avalanche preconsensus.
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.