Compute the block subsidy (newly created coins) for a block at a given height.
Declared in <validation.h>
CAmount
GetBlockSubsidy(
int nHeight,
Consensus::Params const& consensusParams);
The block subsidy in satoshis.
| Name | Description |
|---|---|
| nHeight | Height of the block whose subsidy is being computed. |
| consensusParams | Consensus parameters, which define the halving interval. |