This PR adds supports for mini miner to return the package fee rates of the linearized transactions
The first step for #30079
It is motivated by #30079 (comment)
Linearize
return package feerates
#33216
This PR adds supports for mini miner to return the package fee rates of the linearized transactions
The first step for #30079
It is motivated by #30079 (comment)
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33216.
See the guideline for information on the review process. A summary of reviews will appear here.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
20@@ -21,6 +21,16 @@ class CTxMemPool;
21
22 namespace node {
23
24+struct LinearizationResult {
167@@ -161,11 +168,10 @@ class MiniMiner
168 * if it cannot be calculated. */
169 std::optional<CAmount> CalculateTotalBumpFees(const CFeeRate& target_feerate);
170
171- /** Construct a new block template with all of the transactions and calculate the order in which
172- * they are selected. Returns the sequence number (lower = selected earlier) with which each
173- * transaction was selected, indexed by txid, or an empty map if it cannot be calculated.
174+ /** Construct a new block template with all of the transactions and calculate both the order in
Co-authored-by: willcl-ark <will@256k1.dev>