| 1618 | } |
| 1619 | |
| 1620 | CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams) |
| 1621 | { |
| 1622 | int halvings = nHeight / consensusParams.nSubsidyHalvingInterval; |
| 1623 | // Force block reward to zero when right shift is undefined. |
| 1624 | if (halvings >= 64) |
| 1625 | return 0; |
| 1626 | |
| 1627 | CAmount nSubsidy = 50 * COIN; |
| 1628 | // Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years. |
| 1629 | nSubsidy >>= halvings; |
| 1630 | return nSubsidy; |
| 1631 | } |
| 1632 | |
| 1633 | bool fForceInitialBlockDownload = false; |
| 1634 | bool IsInitialBlockDownload() |
no outgoing calls