mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 14:53:27 +01:00
blockchain: ensure base fee cannot reach 0
reported by sech1
This commit is contained in:
parent
2f45d5c615
commit
1fad8cc919
@ -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);
|
div128_64(hi, lo, median_block_weight, &hi, &lo, NULL, NULL);
|
||||||
assert(hi == 0);
|
assert(hi == 0);
|
||||||
lo -= lo / 20;
|
lo -= lo / 20;
|
||||||
return lo;
|
return lo == 0 ? 1 : lo;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user