diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 8eacb87..3380dbf 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1532,6 +1532,14 @@ bool Blockchain::validate_miner_transaction(const block& b, size_t cumulative_bl } partial_block_reward = false; + if (height == 0) + { + base_reward = PREMINE_AMOUNT; + CHECK_AND_ASSERT_MES(b.miner_tx.amount_burnt == 0, false, "genesis miner transaction must not burn funds"); + CHECK_AND_ASSERT_MES(money_in_use == PREMINE_AMOUNT, false, "genesis miner transaction has incorrect amount"); + return true; + } + switch (version) { case HF_VERSION_BULLETPROOF_PLUS: case HF_VERSION_ENABLE_N_OUTS: