Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
policy_estimator_io.cpp
Go to the documentation of this file.
1// Copyright (c) 2020-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
8#include <streams.h>
10#include <test/fuzz/fuzz.h>
11#include <test/fuzz/util.h>
14
15#include <memory>
16
17namespace {
19constexpr ReachabilityGoal BLOCK_POLICY_ESTIMATOR_READ_SUCCEEDS{"block policy estimator reading succeeds"};
20} // namespace
21
29
const TestingSetup * g_setup
constexpr bool DEFAULT_ACCEPT_STALE_FEE_ESTIMATES
Non-refcounted RAII wrapper for FILE*.
Definition streams.h:395
int fclose()
Definition streams.h:429
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)
#define FUZZ_TARGET(...)
Definition fuzz.h:35
Definition basic.cpp:11
void initialize_policy_estimator_io()
void ObserveReachabilityGoal(bool reached, const ReachabilityGoal &goal)
Record whether a registered goal is satisfied by at least one fuzz input.
void RegisterReachabilityGoal(const ReachabilityGoal &goal)
Register a goal before executing any fuzz inputs.
node::NodeContext m_node
A reachability condition explicitly registered by a fuzz target.
bool setup_net
Testing setup that configures a complete environment.
std::unique_ptr< CTxMemPool > mempool
Definition context.h:69
std::unique_ptr< ChainstateManager > chainman
Definition context.h:74
ArgsManager * args
Definition context.h:76
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:82
FuzzedDataProvider & fuzzed_data_provider
Definition fees.cpp:46