diff options
author | luigi1111 <luigi1111w@gmail.com> | 2023-06-27 11:40:06 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2023-06-27 11:40:06 -0500 |
commit | 11b5139506709e8656623c524d4df53b9b05b1b6 (patch) | |
tree | 56e0d8561b965dcb2af78eb27eec76b4de8a8dfc | |
parent | Merge pull request #8845 (diff) | |
parent | blockchain: ensure base fee cannot reach 0 (diff) | |
download | monero-11b5139506709e8656623c524d4df53b9b05b1b6.tar.xz |
Merge pull request #8851
1fad8cc 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 6329718c5..35fa77688 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -3710,7 +3710,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 { |