aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-07-13 12:32:43 -0400
committerCarl Dong <contact@carldong.me>2022-07-15 12:25:51 -0400
commitb3267258b052557fc136b9a4dcb754afb9219470 (patch)
treef7946c5e310f6bf535a2f60f6d908d601c8e2ba0 /src/validation.h
parentae1e8e37567fa603a5977d7d05105c682dd3f7db (diff)
downloadbitcoin-b3267258b052557fc136b9a4dcb754afb9219470.tar.xz
Move FopenFn to fsbridge namespace
[META] In a future commit in this patchset, it will be used by more than just validation, and it needs to align with fopen anyway.
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/validation.h b/src/validation.h
index a1901cd782..711fc746e2 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -1014,13 +1014,11 @@ bool DeploymentEnabled(const ChainstateManager& chainman, DEP dep)
return DeploymentEnabled(chainman.GetConsensus(), dep);
}
-using FopenFn = std::function<FILE*(const fs::path&, const char*)>;
-
/** Dump the mempool to disk. */
-bool DumpMempool(const CTxMemPool& pool, const fs::path& dump_path, FopenFn mockable_fopen_function = fsbridge::fopen, bool skip_file_commit = false);
+bool DumpMempool(const CTxMemPool& pool, const fs::path& dump_path, fsbridge::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);
+bool LoadMempool(CTxMemPool& pool, CChainState& active_chainstate, fsbridge::FopenFn mockable_fopen_function = fsbridge::fopen);
/**
* Return the expected assumeutxo value for a given height, if one exists.