diff options
author | luigi1111 <luigi1111w@gmail.com> | 2023-07-06 21:30:09 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2023-07-06 21:30:09 -0500 |
commit | 770b8fba3da50ea094181e84fffe827aefa68783 (patch) | |
tree | 750aae479524e3fdcc34c86e27dd1fc94578b816 | |
parent | Merge pull request #8747 (diff) | |
parent | blockchain: ensure base fee cannot reach 0 (diff) | |
download | monero-770b8fba3da50ea094181e84fffe827aefa68783.tar.xz |
Merge pull request #8850
d391ac0 blockchain: ensure base fee cannot reach 0 (Crypto City)
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
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 { |