Reward-Schedule

如何製作第一個 200 比特幣區塊?

  • March 13, 2017

我希望在探勘特定區塊時獲得我指出的獎勵

想讓第一個塊 200BTC 和所有其他 50BTC 如何實現它

仍然有可能出現這種變體

塊 1) 50BTC

5) 200BTC

6) 50BTC

是的,這是可能的。修改此程式碼:

CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
   int halvings = nHeight / consensusParams.nSubsidyHalvingInterval;
   // Force block reward to zero when right shift is undefined.
   if (halvings >= 64)
       return 0;

   CAmount nSubsidy = 50 * COIN;
   // Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years.
   nSubsidy >>= halvings;
   return nSubsidy;
}

閱讀

CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
   int halvings = nHeight / consensusParams.nSubsidyHalvingInterval;
   // Force block reward to zero when right shift is undefined.
   if (halvings >= 64)
       return 0;
   if (nHeight == 1)
       return 200 * COIN;

   CAmount nSubsidy = 50 * COIN;
   // Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years.
   nSubsidy >>= halvings;
   return nSubsidy;
}

引用自:https://bitcoin.stackexchange.com/questions/52098