mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Tweak final emission check
This commit is contained in:
parent
5c4b0b97b4
commit
7f2d79ad44
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ namespace cryptonote {
|
||||||
const int emission_speed_factor = EMISSION_SPEED_FACTOR_PER_MINUTE - (target_minutes-1);
|
const int emission_speed_factor = EMISSION_SPEED_FACTOR_PER_MINUTE - (target_minutes-1);
|
||||||
|
|
||||||
uint64_t base_reward = (MONEY_SUPPLY - already_generated_coins) >> emission_speed_factor;
|
uint64_t base_reward = (MONEY_SUPPLY - already_generated_coins) >> emission_speed_factor;
|
||||||
if (base_reward < FINAL_SUBSIDY_PER_MINUTE*target_minutes)
|
if (base_reward <= FINAL_SUBSIDY_PER_MINUTE*target_minutes)
|
||||||
{
|
{
|
||||||
base_reward = FINAL_SUBSIDY_PER_MINUTE*target_minutes;
|
base_reward = FINAL_SUBSIDY_PER_MINUTE*target_minutes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue