Skip to content

Commit

Permalink
consensus: Document the empty conditional branch in ContextualCheckBlock
Browse files Browse the repository at this point in the history
It exists to implement a ZIP 207 consensus rule that turns off the
Founders' Reward once Canopy activates.
  • Loading branch information
str4d committed Aug 20, 2020
1 parent b47f686 commit bfeaa0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit bfeaa0e

Please sign in to comment.