forked from digibyte/digibyte
-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathmempool_args.h
More file actions
26 lines (21 loc) · 900 Bytes
/
mempool_args.h
File metadata and controls
26 lines (21 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2014-2025 The DigiByte Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef DIGIBYTE_NODE_MEMPOOL_ARGS_H
#define DIGIBYTE_NODE_MEMPOOL_ARGS_H
#include <util/result.h>
class ArgsManager;
class CChainParams;
struct bilingual_str;
namespace kernel {
struct MemPoolOptions;
};
/**
* Overlay the options set in \p argsman on top of corresponding members in \p mempool_opts.
* Returns an error if one was encountered.
*
* @param[in] argsman The ArgsManager in which to check set options.
* @param[in,out] mempool_opts The MemPoolOptions to modify according to \p argsman.
*/
[[nodiscard]] util::Result<void> ApplyArgsManOptions(const ArgsManager& argsman, const CChainParams& chainparams, kernel::MemPoolOptions& mempool_opts);
#endif // DIGIBYTE_NODE_MEMPOOL_ARGS_H