consensus: Document the empty conditional branch in ContextualCheckBlock

It exists to implement a ZIP 207 consensus rule that turns off the
Founders' Reward once Canopy activates.
This commit is contained in:
Jack Grigg 2020-08-20 13:19:25 +01:00
parent b47f686754
commit bfeaa0e4c0
1 changed files with 4 additions and 0 deletions

View File

@ -4181,6 +4181,10 @@ bool ContextualCheckBlock(
if (consensusParams.NetworkUpgradeActive(nHeight, Consensus::UPGRADE_CANOPY)) {
// Funding streams are checked inside ContextualCheckTransaction.
// This empty conditional branch exists to enforce this ZIP 207 consensus rule:
//
// Once the Canopy network upgrade activates, the existing consensus rule for
// payment of the Founders' Reward is no longer active.
} else if ((nHeight > 0) && (nHeight <= consensusParams.GetLastFoundersRewardBlockHeight(nHeight))) {
// Coinbase transaction must include an output sending 20% of
// the block subsidy to a Founders' Reward script, until the last Founders'