aboutsummaryrefslogtreecommitdiff
path: root/src/mempool_args.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-03-17 22:09:05 -0400
committerCarl Dong <contact@carldong.me>2022-06-28 15:46:10 -0400
commit9333427014695ac235c96d48791098168dfdc9db (patch)
tree07ad5f9e9837a97418739be0a09e896a3ced829e /src/mempool_args.h
parent716bb5fbd31077bbe99d11a54d6c2c250afc8085 (diff)
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/mempool_args.h')
-rw-r--r--src/mempool_args.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mempool_args.h b/src/mempool_args.h
index 1732bdaac9..9a4abe6618 100644
--- a/src/mempool_args.h
+++ b/src/mempool_args.h
@@ -10,6 +10,13 @@ namespace kernel {
struct MemPoolOptions;
};
+/**
+ * Overlay the options set in \p argsman on top of corresponding members in \p mempool_opts.
+ *
+ * @param[in] argsman The ArgsManager in which to check set options.
+ * @param[in,out] mempool_opts The MemPoolOptions to modify according to \p argsman.
+ */
void ApplyArgsManOptions(const ArgsManager& argsman, kernel::MemPoolOptions& mempool_opts);
+
#endif // BITCOIN_MEMPOOL_ARGS_H