Currently, blocks are constructed out of two different transaction classes:
- Priority. Priority calculations are currently disparate in different parts of the codebase, there is a subtask to clean this up.
- Packages. Packages are bundled up due to CPFP.
We would like to refactor block construction to be based on a single priority value for packages which can be calculated from the priority of transactions which are part of a package.