mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-01 11:11:22 +00:00
-BEGIN VERIFY SCRIPT- sed --in-place --regexp-extended \ 's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' \ $( git grep -l 'The Bitcoin Core developers' -- ':(exclude)COPYING' ':(exclude)src/ipc/libmultiprocess' ':(exclude)src/minisketch' ) -END VERIFY SCRIPT-
26 lines
732 B
C++
26 lines
732 B
C++
// Copyright (c) 2022-present 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 <util/fs.h>
|
|
|
|
class ArgsManager;
|
|
|
|
namespace node {
|
|
|
|
/**
|
|
* 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};
|
|
|
|
bool ShouldPersistMempool(const ArgsManager& argsman);
|
|
fs::path MempoolPath(const ArgsManager& argsman);
|
|
|
|
} // namespace node
|
|
|
|
#endif // BITCOIN_NODE_MEMPOOL_PERSIST_ARGS_H
|