aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2023-07-06 21:30:09 -0500
committerluigi1111 <luigi1111w@gmail.com>2023-07-06 21:30:09 -0500
commit770b8fba3da50ea094181e84fffe827aefa68783 (patch)
tree750aae479524e3fdcc34c86e27dd1fc94578b816
parentMerge pull request #8747 (diff)
parentblockchain: ensure base fee cannot reach 0 (diff)
downloadmonero-770b8fba3da50ea094181e84fffe827aefa68783.tar.xz
Merge pull request #8850
d391ac0 blockchain: ensure base fee cannot reach 0 (Crypto City)
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index dc20bd1ff..8036c84cd 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -3709,7 +3709,7 @@ uint64_t Blockchain::get_dynamic_base_fee(uint64_t block_reward, size_t median_b
div128_64(hi, lo, median_block_weight, &hi, &lo, NULL, NULL);
assert(hi == 0);
lo -= lo / 20;
- return lo;
+ return lo == 0 ? 1 : lo;
}
else
{