Skip to content

Commit 89ee0e1

Browse files
committed
Difficulty adjustment refork
Adjustment of hardcoded initial post-fork difficulty to keep the chain moving
1 parent a0ee740 commit 89ee0e1

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

ReleaseNotes.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1+
Release notes 5.0.2-beta
2+
- Adjustment of hardcoded initial post-fork difficulty to keep the chain moving
3+
4+
Release notes 5.0.1-beta
5+
- Small (but important) hard fork tweak to ensure smooth fork
6+
17
Release notes 5.0.0-beta
28

39
- Proof-of-work change to CryptoNightV1 (variant 1 also known as "monero7") to remain ASIC resistant
4-
- Difficulty adjustment algorithm has been updated to Zawy's LWMA to resist hash and timestamp attacks
10+
- Difficulty adjustment algorithm has been updated to Zawy's LWMA-2 to resist hash and timestamp attacks
511
- Seed nodes updated to be operational (no more unresponsive seeds from old dev)
612
- Block target reduced to 2 minutes
713
- Difficulty is hardcoded to "reset" back to GPU levels for blocks immediately following the fork so that the network continues to work as intended and does not stall
14+
- GUI embedded pool miner now works
815
- Latest checkpoints and small Payment Gate bug fix
16+
- Arch Linux compile fixes
917

1018
Release notes 4.0.3-beta
1119

src/CryptoNoteConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const size_t FUSION_TX_MIN_IN_OUT_COUNT_RATIO = 4;
7171
const uint32_t UPGRADE_HEIGHT_V2 = 136212;
7272
const uint32_t UPGRADE_HEIGHT_V3 = 317950;
7373
const uint32_t UPGRADE_HEIGHT_V4 = 338000;
74-
const uint32_t UPGRADE_HEIGHT_V5 = 668946; //June 25 12AM UTC
74+
const uint32_t UPGRADE_HEIGHT_V5 = 669369; //June 27 refork
7575
const unsigned UPGRADE_VOTING_THRESHOLD = 90; // percent
7676
const size_t UPGRADE_VOTING_WINDOW = EXPECTED_NUMBER_OF_BLOCKS_PER_DAY; // blocks
7777
const size_t UPGRADE_WINDOW = EXPECTED_NUMBER_OF_BLOCKS_PER_DAY; // blocks
@@ -183,7 +183,7 @@ const std::initializer_list<CheckpointData> CHECKPOINTS = {
183183

184184
const std::map<const uint32_t, const uint8_t> Version = {
185185
// {BlockIndex , Version}
186-
{ 668946, 1 }
186+
{ 669369, 1 }
187187
};
188188

189189
} // CryptoNote

src/CryptoNoteCore/Currency.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ difficulty_type Currency::nextDifficulty(std::vector<uint64_t> timestamps,
529529

530530
// Hardcode difficulty for 61 blocks after fork height:
531531
if (height >= parameters::UPGRADE_HEIGHT_V5 && height <= parameters::UPGRADE_HEIGHT_V5 + N) {
532-
return 1000000000;
532+
return 1000000;
533533
}
534534

535535
// TS and CD vectors must be size N+1 after startup, and element N is most recent block.

src/version.h.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#define BUILD_COMMIT_ID "@VERSION@"
2-
#define PROJECT_VERSION "5.0.1-beta"
3-
#define PROJECT_VERSION_BUILD_NO "1803"
2+
#define PROJECT_VERSION "5.0.2-beta"
3+
#define PROJECT_VERSION_BUILD_NO "1804"
44
#define PROJECT_VERSION_LONG PROJECT_VERSION "." PROJECT_VERSION_BUILD_NO "(" BUILD_COMMIT_ID ")"

0 commit comments

Comments
 (0)