| 1194 | } |
| 1195 | |
| 1196 | CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams) |
| 1197 | { |
| 1198 | int halvings = nHeight / consensusParams.nSubsidyHalvingInterval; |
| 1199 | // Force block reward to zero when right shift is undefined. |
| 1200 | if (halvings >= 64) |
| 1201 | return 0; |
| 1202 | |
| 1203 | CAmount nSubsidy = 50 * COIN; |
| 1204 | // Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years. |
| 1205 | nSubsidy >>= halvings; |
| 1206 | return nSubsidy; |
| 1207 | } |
| 1208 | |
| 1209 | bool IsInitialBlockDownload() |
| 1210 | { |
no outgoing calls