Some functions in wallet/fees.cpp (fuzzed by the wallet_fees target) depends on some mempool stuff - e.g. relay current min fee, smart fee and max blocks estimation, relay dust fee and other ones. For better fuzzing of it, it would be great to have these values/interactions. That said, this PR enhances the wallet_fees target by:
- Setting mempool options - min_relay_feerate,dust_relay_feerateandincremental_relay_feerate- when creating theCTxMemPool.
- Creates a ConsumeMempoolMinFeefunction which is used to have a mempool min fee (similar approach fromMockMempoolMinFeefrom unit test).
- Mock CBlockPolicyEstimator- estimateSmartFee/HighestTagretTracket functions, especifically. It’s better to mock it then trying to interact to CBlockPolicyEstimator in order to have some effective values due to performance.
Note that I created FeeEstimatorTestingSetup because we cannot set m_node.fee_estimator in ChainTestingSetup since fae8c73d9e4eba4603447bb52b6e3e760fbf15f8.