From bfeaa0e4c09f411694e12477a48a2eb349fd628f Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Thu, 20 Aug 2020 13:19:25 +0100 Subject: [PATCH] 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. --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 21800b51e..247f8f056 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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'