This is part of #27463. It splits off the MiniMiner
-specific changes from #26711 for ease of review, as suggested in #26711 (comment).
- Allow using
MiniMiner
on transactions that aren’t in the mempool. - Make
target_feerate
param ofBuildMockTemplate
optional, meaning “don’t stop building the template until all the transactions have been selected.”- Add clarification for how this is different from
target_feerate=0
(https://github.com/bitcoin/bitcoin/pull/26711#discussion_r1377019133)
- Add clarification for how this is different from
- Track the order in which transactions are included in the template to get the “linearization order” of the transactions.
- Tests
Reviewers can take a look at #26711 to see how these functions are used to linearize the AncestorPackage
there.