2022-07-12 15:54:11 -04:00
|
|
|
// 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.
|
|
|
|
|
|
|
|
#ifndef BITCOIN_NODE_MEMPOOL_PERSIST_ARGS_H
|
|
|
|
#define BITCOIN_NODE_MEMPOOL_PERSIST_ARGS_H
|
|
|
|
|
|
|
|
#include <fs.h>
|
|
|
|
|
|
|
|
class ArgsManager;
|
|
|
|
|
|
|
|
namespace node {
|
|
|
|
|
2022-07-13 13:42:15 -04:00
|
|
|
/**
|
|
|
|
* Default for -persistmempool, indicating whether the node should attempt to
|
|
|
|
* automatically load the mempool on start and save to disk on shutdown
|
|
|
|
*/
|
|
|
|
static constexpr bool DEFAULT_PERSIST_MEMPOOL{true};
|
|
|
|
|
2022-07-12 15:54:11 -04:00
|
|
|
bool ShouldPersistMempool(const ArgsManager& argsman);
|
|
|
|
fs::path MempoolPath(const ArgsManager& argsman);
|
|
|
|
|
|
|
|
} // namespace node
|
|
|
|
|
|
|
|
#endif // BITCOIN_NODE_MEMPOOL_PERSIST_ARGS_H
|