From e68f7f46eda98a2cb15fa1f6262e80cf4736fab9 Mon Sep 17 00:00:00 2001 From: Some Random Crypto Guy Date: Sun, 15 Dec 2024 11:50:14 +0000 Subject: [PATCH] fixed check on miner-staker split --- src/cryptonote_core/blockchain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 1870d99..0e83932 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1501,7 +1501,8 @@ bool Blockchain::validate_miner_transaction(const block& b, size_t cumulative_bl CHECK_AND_ASSERT_MES(money_in_use + b.miner_tx.amount_burnt > money_in_use, false, "miner transaction is overflowed by amount_burnt"); money_in_use += b.miner_tx.amount_burnt; } - CHECK_AND_ASSERT_MES((money_in_use - fee) / 5 == b.miner_tx.amount_burnt, false, "miner_transaction has incorrect amount_burnt amount"); + if (already_generated_coins != 0) + CHECK_AND_ASSERT_MES(money_in_use / 5 == b.miner_tx.amount_burnt, false, "miner_transaction has incorrect amount_burnt amount"); break; default: assert(false);