Compute the block subsidy (newly created coins) for a block at a given height.

Synopsis

Declared in <validation.h>

CAmount
GetBlockSubsidy(
    int nHeight,
    Consensus::Params const& consensusParams);

Return Value

The block subsidy in satoshis.

Parameters

Name

Description

nHeight

Height of the block whose subsidy is being computed.

consensusParams

Consensus parameters, which define the halving interval.

Created with MrDocs