// that would prevent overflow
uint64_t subsidy = GetBlockValue(nHeight, 0);
BOOST_CHECK(subsidy < 50 * COIN);
nSum += subsidy * 1000;