Skip to content

Commit

Permalink
Merge pull request #295 from ConcealNetwork/fix
Browse files Browse the repository at this point in the history
Version 6.6.4
  • Loading branch information
AxVultis authored Jul 17, 2022
2 parents d3e0b29 + a02d304 commit d7f2709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.0)

include(CheckCXXCompilerFlag)
set(VERSION "6.6.3")
set(VERSION "6.6.4")
set(VERSION_BUILD_NO "Ataegina")
# Packaged from main commits
set(COMMIT 1db6e66)
Expand Down
6 changes: 2 additions & 4 deletions src/CryptoNoteCore/Currency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ namespace cn

uint64_t Currency::baseRewardFunction(uint64_t alreadyGeneratedCoins, uint32_t height) const
{

uint64_t incrIntervals = static_cast<uint64_t>(height) / REWARD_INCREASE_INTERVAL;
assert(incrIntervals < REWARD_INCREASING_FACTOR.size());

if (height == 1)
{
return FOUNDATION_TRUST;
Expand All @@ -194,6 +190,8 @@ namespace cn
}
else
{
uint64_t incrIntervals = static_cast<uint64_t>(height) / REWARD_INCREASE_INTERVAL;
assert(incrIntervals < REWARD_INCREASING_FACTOR.size());
base_reward = START_BLOCK_REWARD + REWARD_INCREASING_FACTOR[incrIntervals];
}

Expand Down

0 comments on commit d7f2709

Please sign in to comment.