From 459ed1a0ca900111893e1abc7f7fb3b905056d5c Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Sun, 10 Mar 2024 13:56:23 -0500 Subject: [PATCH] Blockchain: more accurate block reward overestimate --- src/cryptonote_core/blockchain.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 3e1704048..24a4067f5 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -83,8 +83,9 @@ DISABLE_VS_WARNINGS(4267) #define MERROR_VER(x) MCERROR("verify", x) -// used to overestimate the block reward when estimating a per kB to use -#define BLOCK_REWARD_OVERESTIMATE (10 * 1000000000000) +// Used to overestimate the block reward when estimating fees. The maximum value that the block +// reward can be post tail emission is the final subsidy per block (0.6 XMR) +#define BLOCK_REWARD_OVERESTIMATE (FINAL_SUBSIDY_PER_MINUTE * DIFFICULTY_TARGET_V2) //------------------------------------------------------------------ Blockchain::Blockchain(tx_memory_pool& tx_pool) :