diff options
author | Carl Dong <contact@carldong.me> | 2022-07-13 13:42:15 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-07-15 12:26:20 -0400 |
commit | aa306765419f7dbea12b12e15553039835ba0e4d (patch) | |
tree | 2d5dcfcc0e8746f7bfa07bb89b77251fab96e8c7 /src/node/mempool_persist_args.h | |
parent | 06b88ffb8ae7f2b2a93a32908cd80e77fafd270c (diff) | |
download | bitcoin-aa306765419f7dbea12b12e15553039835ba0e4d.tar.xz |
Move DEFAULT_PERSIST_MEMPOOL out of libbitcoinkernel
It is no longer used by anything inside libbitcoinkernel, move it to
node/mempool_persist_args.h where it belongs.
Diffstat (limited to 'src/node/mempool_persist_args.h')
-rw-r--r-- | src/node/mempool_persist_args.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node/mempool_persist_args.h b/src/node/mempool_persist_args.h index f2bfd2b748..f719ec62ab 100644 --- a/src/node/mempool_persist_args.h +++ b/src/node/mempool_persist_args.h @@ -11,6 +11,12 @@ 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); |