diff options
author | Carl Dong <contact@carldong.me> | 2022-07-12 15:54:11 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-07-15 11:30:50 -0400 |
commit | 413f4bb52b72e082ad8716664ede48352b8e7e5a (patch) | |
tree | 0693604f576339340584525094aebfc7efbb41b2 /src/validation.h | |
parent | bd4407817e523e3c5b347bc6be25ed007cb27034 (diff) | |
download | bitcoin-413f4bb52b72e082ad8716664ede48352b8e7e5a.tar.xz |
DumpMempool: Pass in dump_path, stop using gArgs
Also introduce node::{ShouldPersistMempool,MempoolPath} helper functions
in node/mempool_persist_args.{h,cpp} which are used by non-kernel
DumpMempool callers to determine whether or not to automatically dump
the mempool and where to dump it to.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h index 0e27e117fa..a1901cd782 100644 --- a/src/validation.h +++ b/src/validation.h @@ -1017,7 +1017,7 @@ bool DeploymentEnabled(const ChainstateManager& chainman, DEP dep) using FopenFn = std::function<FILE*(const fs::path&, const char*)>; /** Dump the mempool to disk. */ -bool DumpMempool(const CTxMemPool& pool, FopenFn mockable_fopen_function = fsbridge::fopen, bool skip_file_commit = false); +bool DumpMempool(const CTxMemPool& pool, const fs::path& dump_path, FopenFn mockable_fopen_function = fsbridge::fopen, bool skip_file_commit = false); /** Load the mempool from disk. */ bool LoadMempool(CTxMemPool& pool, CChainState& active_chainstate, FopenFn mockable_fopen_function = fsbridge::fopen); |