Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This implements a subsidy cache with funcs to calculate subsidies for proof-of-work, votes, and the treasury and includes a full suite of tests. It consists of ports of the related code in blockchain/standalone with the following modifications: - Removes the subsidy split parameters from SubsidyParams since the chaincfg implementations are deprecated - Uses hard-coded constants for the PoW, PoS, and treasury splits both prior to and after the activation of DCP0010 - Removes the version 1 methods and renames the version 2 variants to take their place: - CalcWorkSubsidyV2 -> CalcWorkSubsidy - CalcStakeVoteSubsidyV2 -> CalcStakeVoteSubsidy - Consolidates the tests specific to the decentralized treasury agenda into their counterparts - Includes additional maintainer notes with the expected way to update the code without needing a major module bump should it ever be necessary
- Loading branch information