Skip to content

Commit

Permalink
Version 0.4.7 build 1122
Browse files Browse the repository at this point in the history
  • Loading branch information
mtl1979 committed Sep 25, 2021
1 parent ee7b4d6 commit 512fc19
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C /
ADD https://github.com/just-containers/socklog-overlay/releases/download/v2.1.0-0/socklog-overlay-amd64.tar.gz /tmp/
RUN tar xzf /tmp/socklog-overlay-amd64.tar.gz -C /

ARG TALLEO_VERSION=v0.4.7.1121
ARG TALLEO_VERSION=v0.4.7.1122
ENV TALLEO_VERSION=${TALLEO_VERSION}

# install build dependencies
Expand Down
8 changes: 6 additions & 2 deletions src/CryptoNoteCore/Currency.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018-2019, The Bittorium developers
// Copyright (c) 2019, The Talleo developers
// Copyright (c) 2019-2021, The Talleo developers
//
// This file is part of Bytecoin.
//
Expand Down Expand Up @@ -618,7 +618,11 @@ Difficulty Currency::nextDifficultyZawyLWMA2(uint8_t version, uint32_t blockInde
next_D = std::max(next_D, (prev_D*110)/100);
}

return static_cast<uint64_t>(next_D);
uint64_t nextD = static_cast<uint64_t>(next_D);
if (nextD == 0)
return 100;

return nextD;
}

Difficulty Currency::nextDifficulty(uint8_t version, uint32_t blockIndex, std::vector<uint64_t> timestamps,
Expand Down
2 changes: 1 addition & 1 deletion src/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define APP_VER_MAJOR 0
#define APP_VER_MINOR 4
#define APP_VER_REV 7
#define APP_VER_BUILD 1121
#define APP_VER_BUILD 1122

#define BUILD_COMMIT_ID "@VERSION@"
#define PROJECT_VERSION STR(APP_VER_MAJOR) "." STR(APP_VER_MINOR) "." STR(APP_VER_REV)
Expand Down

0 comments on commit 512fc19

Please sign in to comment.