diff options
author | Carl Dong <contact@carldong.me> | 2022-03-17 22:09:05 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-06-28 15:46:10 -0400 |
commit | 9333427014695ac235c96d48791098168dfdc9db (patch) | |
tree | 07ad5f9e9837a97418739be0a09e896a3ced829e /src/kernel/mempool_options.h | |
parent | 716bb5fbd31077bbe99d11a54d6c2c250afc8085 (diff) | |
download | bitcoin-9333427014695ac235c96d48791098168dfdc9db.tar.xz |
mempool: Introduce (still-unused) MemPoolLimits
They live as a CTxMemPool member.
[META] These limits will be used in subsequent commits to replace calls
to gArgs.
Diffstat (limited to 'src/kernel/mempool_options.h')
-rw-r--r-- | src/kernel/mempool_options.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/mempool_options.h b/src/kernel/mempool_options.h index c4f34ff9f9..a14abb6628 100644 --- a/src/kernel/mempool_options.h +++ b/src/kernel/mempool_options.h @@ -4,6 +4,8 @@ #ifndef BITCOIN_KERNEL_MEMPOOL_OPTIONS_H #define BITCOIN_KERNEL_MEMPOOL_OPTIONS_H +#include <kernel/mempool_limits.h> + #include <chrono> #include <cstdint> @@ -29,6 +31,7 @@ struct MemPoolOptions { int check_ratio{0}; int64_t max_size_bytes{DEFAULT_MAX_MEMPOOL_SIZE_MB * 1'000'000}; std::chrono::seconds expiry{std::chrono::hours{DEFAULT_MEMPOOL_EXPIRY_HOURS}}; + MemPoolLimits limits{}; }; } // namespace kernel |