Bitcoin Core
31.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
node
mempool_persist_args.cpp
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
5
#include <
node/mempool_persist_args.h
>
6
7
#include <
common/args.h
>
8
#include <
util/fs.h
>
9
#include <validation.h>
10
11
namespace
node
{
12
13
bool
ShouldPersistMempool
(
const
ArgsManager
& argsman)
14
{
15
return
argsman.
GetBoolArg
(
"-persistmempool"
,
DEFAULT_PERSIST_MEMPOOL
);
16
}
17
18
fs::path
MempoolPath
(
const
ArgsManager
& argsman)
19
{
20
return
argsman.
GetDataDirNet
() /
"mempool.dat"
;
21
}
22
23
}
// namespace node
args.h
ArgsManager
Definition
args.h:103
ArgsManager::GetDataDirNet
fs::path GetDataDirNet() const
Get data directory path with appended network identifier.
Definition
args.h:239
ArgsManager::GetBoolArg
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
Definition
args.cpp:515
fs.h
mempool_persist_args.h
node
Definition
messages.h:21
node::MempoolPath
fs::path MempoolPath(const ArgsManager &argsman)
Definition
mempool_persist_args.cpp:18
node::ShouldPersistMempool
bool ShouldPersistMempool(const ArgsManager &argsman)
Definition
mempool_persist_args.cpp:13
node::DEFAULT_PERSIST_MEMPOOL
static constexpr bool DEFAULT_PERSIST_MEMPOOL
Default for -persistmempool, indicating whether the node should attempt to automatically load the mem...
Definition
mempool_persist_args.h:18
Generated on
for Bitcoin Core by
1.17.0