Skip to content

Commit

Permalink
#234 v4.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Snider authored Feb 4, 2022
2 parents 3b2c75b + d77ee3d commit 3236ad1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Provide current version here instead of versin.h.in file
LETHEAN_VERSION?=4.0.3
LETHEAN_VERSION?=4.0.4
LETHEAN_RELEASE?=linux
LETHEAN_CMAKE_FLAGS?=""

Expand Down
7 changes: 5 additions & 2 deletions src/cryptonote_basic/cryptonote_basic_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ namespace cryptonote {
const int emission_speed_factor = EMISSION_SPEED_FACTOR_PER_MINUTE - (target_minutes-1);
const uint64_t orig_already_generated_coins = already_generated_coins;

if (orig_already_generated_coins >= UINT64_C(14992413379483553)) {
already_generated_coins -= UINT64_C(14992032107906461); //premine minus the normal block 2 emission
if (version < BLOCK_MAJOR_VERSION_7)
{
if (orig_already_generated_coins >= UINT64_C(14992413379483553)) {
already_generated_coins -= UINT64_C(14992032107906461); //premine minus the normal block 2 emission
}
}

uint64_t base_reward = (MONEY_SUPPLY - already_generated_coins) >> emission_speed_factor;
Expand Down

0 comments on commit 3236ad1

Please sign in to comment.