HomePhabricator

[consensus] Move miner fund logic into its own function

Description

[consensus] Move miner fund logic into its own function

Summary:
This will help simplify the migration to miner fund as policy. There is no
change in behavior.

The ideal design would not pull in fees as a function parameter but instead be
able to determine the fees from the block itself. This is inefficient to do
right now so we take advantage of the fact that the caller has already done
this calculation.

Test Plan:

ninja check check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13071

Details

Provenance
sdulfariAuthored on Jan 27 2023, 17:57
sdulfariPushed on Feb 8 2023, 18:05
Reviewer
Restricted Project
Differential Revision
D13071: [consensus] Move miner fund logic into its own function
Parents
rABC94fab2062c10: Return a set instead of a vector for the miner fund whitelist
Branches
Unknown
Tags
Unknown