File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,13 +105,17 @@ bool Currency::generateGenesisBlock() {
105105}
106106
107107uint64_t Currency::baseRewardFunction (uint64_t alreadyGeneratedCoins, uint32_t height) const {
108- uint64_t base_reward = START_BLOCK_REWARD >> (static_cast <uint64_t >(height) / REWARD_HALVING_INTERVAL);
109- base_reward = (std::max)(base_reward, MIN_BLOCK_REWARD);
110- // block 704000 reward fix at 12AM CST 8/20/18
111- if (height >= parameters::UPGRADE_HEIGHT_V6)
112- base_reward = MIN_BLOCK_REWARD;
113- base_reward = (std::min)(base_reward, m_moneySupply - alreadyGeneratedCoins);
114- return base_reward;
108+ uint64_t base_reward;
109+ if (height < parameters::UPGRADE_HEIGHT_V6)
110+ base_reward = START_BLOCK_REWARD >> (static_cast <uint64_t >(height) / REWARD_HALVING_INTERVAL);
111+ else
112+ {
113+ uint64_t shift = static_cast <uint64_t >(height) / REWARD_HALVING_INTERVAL;
114+ base_reward = shift >= 64 ? 0 : START_BLOCK_REWARD >> shift;
115+ }
116+ base_reward = (std::max)(base_reward, MIN_BLOCK_REWARD);
117+ base_reward = (std::min)(base_reward, m_moneySupply - alreadyGeneratedCoins);
118+ return base_reward;
115119}
116120
117121size_t Currency::blockGrantedFullRewardZoneByBlockVersion (uint8_t blockMajorVersion) const {
Original file line number Diff line number Diff line change 11#define BUILD_COMMIT_ID "@VERSION@"
2- #define PROJECT_VERSION "6.0.0 -beta"
3- #define PROJECT_VERSION_BUILD_NO "1806 "
2+ #define PROJECT_VERSION "6.0.1 -beta"
3+ #define PROJECT_VERSION_BUILD_NO "1807 "
44#define PROJECT_VERSION_LONG PROJECT_VERSION "." PROJECT_VERSION_BUILD_NO "(" BUILD_COMMIT_ID ")"
You can’t perform that action at this time.
0 commit comments