code: func CalcBlockSubsidy(height int32, chainParams *chaincfg.Params) int64 {
  	if chainParams.SubsidyReductionInterval == 0 {
  		return baseSubsidy
  	}
  
  	// Equivalent to: baseSubsidy / 2^(height/subsidyHalvingInterval)
  	return baseSubsidy >> uint(height/chainParams.SubsidyReductionInterval)
  }
docs: // CalcBlockSubsidy returns the subsidy amount a block at the provided height
  // should have. This is mainly used for determining how much the coinbase for
  // newly generated blocks awards as well as validating the coinbase for blocks
  // has the expected value.
  //
  // The subsidy is halved every SubsidyReductionInterval blocks.  Mathematically
  // this is: baseSubsidy / 2^(height/SubsidyReductionInterval)
  //
  // At the target block generation rate for the main network, this is
  // approximately every 4 years.