Bitcoin Core
31.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
kernel
mempool_limits.h
Go to the documentation of this file.
1
// Copyright (c) 2022-present The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
#ifndef BITCOIN_KERNEL_MEMPOOL_LIMITS_H
5
#define BITCOIN_KERNEL_MEMPOOL_LIMITS_H
6
7
#include <
policy/policy.h
>
8
9
#include <cstdint>
10
11
namespace
kernel
{
18
struct
MemPoolLimits
{
20
unsigned
cluster_count
{DEFAULT_CLUSTER_LIMIT};
22
int64_t
cluster_size_vbytes
{DEFAULT_CLUSTER_SIZE_LIMIT_KVB * 1'000};
24
int64_t
ancestor_count
{DEFAULT_ANCESTOR_LIMIT};
26
int64_t
descendant_count
{DEFAULT_DESCENDANT_LIMIT};
27
31
static
constexpr
MemPoolLimits
NoLimits
()
32
{
33
int64_t no_limit{std::numeric_limits<int64_t>::max()};
34
return
{std::numeric_limits<unsigned>::max(), no_limit, no_limit, no_limit};
35
}
36
};
37
}
// namespace kernel
38
39
#endif
// BITCOIN_KERNEL_MEMPOOL_LIMITS_H
kernel
Definition
coinstatsindex.h:21
policy.h
kernel::MemPoolLimits
Options struct containing limit options for a CTxMemPool.
Definition
mempool_limits.h:18
kernel::MemPoolLimits::NoLimits
static constexpr MemPoolLimits NoLimits()
Definition
mempool_limits.h:31
kernel::MemPoolLimits::descendant_count
int64_t descendant_count
The maximum allowed number of transactions in a package including the entry and its descendants.
Definition
mempool_limits.h:26
kernel::MemPoolLimits::ancestor_count
int64_t ancestor_count
The maximum allowed number of transactions in a package including the entry and its ancestors.
Definition
mempool_limits.h:24
kernel::MemPoolLimits::cluster_count
unsigned cluster_count
The maximum number of transactions in a cluster.
Definition
mempool_limits.h:20
kernel::MemPoolLimits::cluster_size_vbytes
int64_t cluster_size_vbytes
The maximum allowed size in virtual bytes of a cluster.
Definition
mempool_limits.h:22
Generated on
for Bitcoin Core by
1.18.0