From 26a14e558f5d281ed24445e15a85ca04f16bdcbb Mon Sep 17 00:00:00 2001 From: Tay8NWWFKpz9JT4NXU0w Date: Sun, 1 Dec 2024 12:37:13 +0000 Subject: [PATCH 1/3] reverse testing related mining changes --- src/cryptonote_basic/cryptonote_basic_impl.cpp | 2 -- src/cryptonote_core/blockchain.cpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cryptonote_basic/cryptonote_basic_impl.cpp b/src/cryptonote_basic/cryptonote_basic_impl.cpp index 9fb76401a..91c91c07d 100644 --- a/src/cryptonote_basic/cryptonote_basic_impl.cpp +++ b/src/cryptonote_basic/cryptonote_basic_impl.cpp @@ -108,7 +108,6 @@ namespace cryptonote { if (current_block_weight <= median_weight) { reward = base_reward; - reward = HAVEN_MAX_TX_VALUE; return true; } @@ -132,7 +131,6 @@ namespace cryptonote { assert(reward_lo < base_reward); reward = reward_lo; - reward = HAVEN_MAX_TX_VALUE; return true; } //------------------------------------------------------------------------------------ diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 518879b35..737e86bc1 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -4753,8 +4753,8 @@ bool Blockchain::check_fee(size_t tx_weight, uint64_t fee, const offshore::prici if (fee < needed_fee - needed_fee / 50) // keep a little 2% buffer on acceptance - no integer overflow { - //MERROR_VER("transaction fee is not enough: " << print_money(fee) << ", minimum fee: " << print_money(needed_fee)); - //return false; + MERROR_VER("transaction fee is not enough: " << print_money(fee) << ", minimum fee: " << print_money(needed_fee)); + return false; } return true; } From 5065094ce38104bcc0600255171c209c7da4ec12 Mon Sep 17 00:00:00 2001 From: Tay8NWWFKpz9JT4NXU0w Date: Sun, 1 Dec 2024 12:40:46 +0000 Subject: [PATCH 2/3] add mising line --- src/cryptonote_basic/cryptonote_basic_impl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cryptonote_basic/cryptonote_basic_impl.cpp b/src/cryptonote_basic/cryptonote_basic_impl.cpp index 91c91c07d..455e5fe09 100644 --- a/src/cryptonote_basic/cryptonote_basic_impl.cpp +++ b/src/cryptonote_basic/cryptonote_basic_impl.cpp @@ -93,6 +93,7 @@ namespace cryptonote { return true; } #endif + uint64_t base_reward = (MONEY_SUPPLY - already_generated_coins) >> emission_speed_factor; if (base_reward < FINAL_SUBSIDY_PER_MINUTE*target_minutes) { From 6a38a5f01b2121cacb242a79590b67ef155bf2c4 Mon Sep 17 00:00:00 2001 From: Tay8NWWFKpz9JT4NXU0w Date: Sun, 1 Dec 2024 12:41:38 +0000 Subject: [PATCH 3/3] add missing tabs --- src/cryptonote_basic/cryptonote_basic_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_basic/cryptonote_basic_impl.cpp b/src/cryptonote_basic/cryptonote_basic_impl.cpp index 455e5fe09..8c9f48774 100644 --- a/src/cryptonote_basic/cryptonote_basic_impl.cpp +++ b/src/cryptonote_basic/cryptonote_basic_impl.cpp @@ -93,7 +93,7 @@ namespace cryptonote { return true; } #endif - + uint64_t base_reward = (MONEY_SUPPLY - already_generated_coins) >> emission_speed_factor; if (base_reward < FINAL_SUBSIDY_PER_MINUTE*target_minutes) {