mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
The fs.* files are already part of the libbitcoin_util library. With the introduction of the fs_helpers.* it makes sense to move fs.* into the util/ directory as well.
24 lines
579 B
C++
24 lines
579 B
C++
// Copyright (c) 2022 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include <node/mempool_persist_args.h>
|
|
|
|
#include <util/fs.h>
|
|
#include <util/system.h>
|
|
#include <validation.h>
|
|
|
|
namespace node {
|
|
|
|
bool ShouldPersistMempool(const ArgsManager& argsman)
|
|
{
|
|
return argsman.GetBoolArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL);
|
|
}
|
|
|
|
fs::path MempoolPath(const ArgsManager& argsman)
|
|
{
|
|
return argsman.GetDataDirNet() / "mempool.dat";
|
|
}
|
|
|
|
} // namespace node
|