diff options
Diffstat (limited to 'src/kernel/mempool_persist.h')
-rw-r--r-- | src/kernel/mempool_persist.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel/mempool_persist.h b/src/kernel/mempool_persist.h index 23c396c0f0..ac558353b7 100644 --- a/src/kernel/mempool_persist.h +++ b/src/kernel/mempool_persist.h @@ -17,10 +17,13 @@ bool DumpMempool(const CTxMemPool& pool, const fs::path& dump_path, fsbridge::FopenFn mockable_fopen_function = fsbridge::fopen, bool skip_file_commit = false); +struct ImportMempoolOptions { + fsbridge::FopenFn mockable_fopen_function{fsbridge::fopen}; +}; /** Import the file and attempt to add its contents to the mempool. */ bool LoadMempool(CTxMemPool& pool, const fs::path& load_path, Chainstate& active_chainstate, - fsbridge::FopenFn mockable_fopen_function = fsbridge::fopen); + ImportMempoolOptions&& opts); } // namespace kernel |