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)
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)
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33216.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| Concept ACK | murchandamus |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
<!--174a7506f384e20aa4161008e828411d-->
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.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
20 | @@ -21,6 +21,16 @@ class CTxMemPool; 21 | 22 | namespace node { 23 | 24 | +struct LinearizationResult {
nit: Add a comment on the struct?
I think the variable name is descriptive enough hence no need for a comment.
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
nit: Consider removing 'both': it is prone to going stale with future change and it adds not much information
Done.
Co-authored-by: willcl-ark <will@256k1.dev>
This PR only extends the return data with the package fee rate, but it does not use the new data. Is a follow-up PR available (as draft) where the new data is used?
Yes it is used in #30079
Concept ACK