1a7fb5eeeefees: return current block height in estimateSmartFee (ismaelsadeeq)ab49480d9bfees: rename fees_args to block_policy_estimator_args (ismaelsadeeq)06db08a435fees: refactor: rename fees to block_policy_estimator (ismaelsadeeq)6dfdd7e034fees: refactor: rename policy_fee_tests.cpp to feerounder_tests.cpp (ismaelsadeeq) Pull request description: This PR is a simple refactoring that does four things: 1. Renames `test/policy_fee_tests.cpp` to `test/feerounder_tests.cpp`. 2. Renames `policy/fees.{h,cpp}` to `policy/fees/block_policy_estimator.{h,cpp}`. 3. Renames `policy/fees_args.cpp` to `policy/fees/block_policy_estimator_args.cpp`. 4. Modifies `estimateSmartFee` to return the block height at which the estimate was made by adding a `best_height` unsigned int value to the `FeeCalculation` struct. **Motivation** In preparation for adding a new fee estimator, the `fees` directory is created so we can organize code into `block_policy_estimator` and `mempool` because a) It would be clunky to add more code directly under `fees`. b) Having `policy/fees.{h,cpp}` and `policy/mempool.{h,cpp}` would also be undesirable. Therefore, it makes sense to structure the it as `policy/fees/block_policy_estimator`, `policy/fees/mempool`, etc. Hence test file were also updated accordingly. The current block height is also returned because later in #30157 we log the height at which each estimate is made (at the debug log category of fee estimation :) ). This feature is particularly useful for empirical data analysis. ACKs for top commit: maflcko: re-ACK1a7fb5eeee🐤 polespinasa: re ACK1a7fb5eeeewillcl-ark: ACK1a7fb5eeeejanb84: re ACK1a7fb5eeeeTree-SHA512: fef7ace2a9f262ec0361fb7a46df5108afc46b5c4b059caadf2fd114740aefbb2592389d11646c13d0e28bf0ef2cfcfbab3e659c4d4288b8ebe64725fd1963c0
src/node/
The src/node/ directory contains code that needs to access node state
(state in CChain, CBlockIndex, CCoinsView, CTxMemPool, and similar
classes).
Code in src/node/ is meant to be segregated from code in
src/wallet/ and src/qt/, to ensure wallet and GUI
code changes don't interfere with node operation, to allow wallet and GUI code
to run in separate processes, and to perhaps eventually allow wallet and GUI
code to be maintained in separate source repositories.
As a rule of thumb, code in one of the src/node/,
src/wallet/, or src/qt/ directories should avoid
calling code in the other directories directly, and only invoke it indirectly
through the more limited src/interfaces/ classes.
This directory is at the moment
sparsely populated. Eventually more substantial files like
src/validation.cpp and
src/txmempool.cpp might be moved there.