Bitcoin ABC  0.22.12
P2P Digital Currency
mempool.h
Go to the documentation of this file.
1 // Copyright (c) 2020 The Bitcoin 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_POLICY_MEMPOOL_H
5 #define BITCOIN_POLICY_MEMPOOL_H
6 
7 #include <cstdint>
8 
9 class CBlockIndex;
10 namespace Consensus {
11 struct Params;
12 }
13 
15 static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT = 50;
20 static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT = 101;
22 static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT = 50;
27 static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT = 101;
28 
29 #endif // BITCOIN_POLICY_MEMPOOL_H
static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT
Default for -limitdescendantcount, max number of in-mempool descendants.
Definition: mempool.h:22
static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT
Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors.
Definition: mempool.h:20
static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT
Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants.
Definition: mempool.h:27
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: blockindex.h:23
const CChainParams & Params()
Return the currently selected parameters.
static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT
Default for -limitancestorcount, max number of in-mempool ancestors.
Definition: mempool.h:15