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:
parent
b47f686754
commit
bfeaa0e4c0
|
@ -4181,6 +4181,10 @@ bool ContextualCheckBlock(
|
||||||
|
|
||||||
if (consensusParams.NetworkUpgradeActive(nHeight, Consensus::UPGRADE_CANOPY)) {
|
if (consensusParams.NetworkUpgradeActive(nHeight, Consensus::UPGRADE_CANOPY)) {
|
||||||
// Funding streams are checked inside ContextualCheckTransaction.
|
// 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))) {
|
} else if ((nHeight > 0) && (nHeight <= consensusParams.GetLastFoundersRewardBlockHeight(nHeight))) {
|
||||||
// Coinbase transaction must include an output sending 20% of
|
// Coinbase transaction must include an output sending 20% of
|
||||||
// the block subsidy to a Founders' Reward script, until the last Founders'
|
// the block subsidy to a Founders' Reward script, until the last Founders'
|
||||||
|
|
Loading…
Reference in New Issue