22 static const auto testing_setup{
35 AutoFile fuzzed_auto_file_block_policy{fuzzed_file_provider.open()};
36 if (block_policy_estimator.Read(fuzzed_auto_file_block_policy)) {
37 block_policy_estimator.Write(fuzzed_auto_file_block_policy);
39 (void)fuzzed_auto_file_block_policy.
fclose();
46 AutoFile fuzzed_auto_file_mempool_policy{fuzzed_file_provider.open()};
47 if (mempool_feerate_estimator.Read(fuzzed_auto_file_mempool_policy)) {
48 mempool_feerate_estimator.Write(fuzzed_auto_file_mempool_policy);
52 (void)fuzzed_auto_file_mempool_policy.
fclose();
const TestingSetup * g_setup
constexpr bool DEFAULT_ACCEPT_STALE_FEE_ESTIMATES
Non-refcounted RAII wrapper for FILE*.
The BlockPolicyEstimator is used for estimating the feerate needed for a transaction to be included i...
Estimate the fee rate required for a transaction to be included in the next block.
fs::path MempoolPolicyEstimatorPath(const ArgsManager &argsman)
fs::path BlockPolicyFeeEstPath(const ArgsManager &argsman)
FUZZ_TARGET(policy_estimator_io,.init=initialize_policy_estimator_io)
void initialize_policy_estimator_io()
Testing setup that configures a complete environment.
std::unique_ptr< CTxMemPool > mempool
std::unique_ptr< ChainstateManager > chainman
FuzzedDataProvider & fuzzed_data_provider