mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
refactor: Add and use kernel::ImportMempoolOptions
This allows optional named arguments with default values.
This commit is contained in:
@@ -48,7 +48,10 @@ FUZZ_TARGET(validation_load_mempool, .init = initialize_validation_load_mempool)
|
||||
auto fuzzed_fopen = [&](const fs::path&, const char*) {
|
||||
return fuzzed_file_provider.open();
|
||||
};
|
||||
(void)LoadMempool(pool, MempoolPath(g_setup->m_args), chainstate, fuzzed_fopen);
|
||||
(void)LoadMempool(pool, MempoolPath(g_setup->m_args), chainstate,
|
||||
{
|
||||
.mockable_fopen_function = fuzzed_fopen,
|
||||
});
|
||||
pool.SetLoadTried(true);
|
||||
(void)DumpMempool(pool, MempoolPath(g_setup->m_args), fuzzed_fopen, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user