diff options
author | Carl Dong <contact@carldong.me> | 2022-07-12 21:42:00 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-07-15 12:26:20 -0400 |
commit | 06b88ffb8ae7f2b2a93a32908cd80e77fafd270c (patch) | |
tree | 3900f5448c90bf9a3f9f9de58aa9cac203e68589 /src/test/fuzz | |
parent | b857ac60d9a0433036519c26675378bbf56a1de1 (diff) | |
download | bitcoin-06b88ffb8ae7f2b2a93a32908cd80e77fafd270c.tar.xz |
LoadMempool: Pass in load_path, stop using gArgs
Also:
1. Have CChainState::LoadMempool and ::ThreadImport take in paths and
pass it through untouched to LoadMempool.
2. Make LoadMempool exit early if the load_path is empty.
3. Adjust the call to ::ThreadImport in ::AppInitMain to correctly pass
in an empty path if mempool persistence is disabled.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/validation_load_mempool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/validation_load_mempool.cpp b/src/test/fuzz/validation_load_mempool.cpp index 20947e3638..357d8a9987 100644 --- a/src/test/fuzz/validation_load_mempool.cpp +++ b/src/test/fuzz/validation_load_mempool.cpp @@ -43,6 +43,6 @@ FUZZ_TARGET_INIT(validation_load_mempool, initialize_validation_load_mempool) auto fuzzed_fopen = [&](const fs::path&, const char*) { return fuzzed_file_provider.open(); }; - (void)chainstate.LoadMempool(g_setup->m_args, fuzzed_fopen); + (void)chainstate.LoadMempool(MempoolPath(g_setup->m_args), fuzzed_fopen); (void)DumpMempool(pool, MempoolPath(g_setup->m_args), fuzzed_fopen, true); } |