-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add mocknet helpers * Update chainparams.cpp
- Loading branch information
1 parent
a5407dd
commit 353f1f6
Showing
6 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
diff --git a/src/pos.cpp b/src/pos.cpp | ||
index 1ad8d066d..01b13b8aa 100644 | ||
--- a/src/pos.cpp | ||
+++ b/src/pos.cpp | ||
@@ -140,6 +140,11 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, int64_t blockTim | ||
|
||
unsigned int nProofOfWorkLimit = UintToArith256(params.pos.diffLimit).GetCompact(); | ||
|
||
+ // Lower difficulty fork for mock network testing | ||
+ if (fMockNetwork) { | ||
+ return nProofOfWorkLimit; | ||
+ } | ||
+ | ||
int nHeight{pindexLast->nHeight + 1}; | ||
bool newDifficultyAdjust{nHeight > params.EunosHeight}; | ||
|
||
diff --git a/src/version.h b/src/version.h | ||
index 3ab303d56..fb84cea92 100644 | ||
--- a/src/version.h | ||
+++ b/src/version.h | ||
@@ -9,7 +9,7 @@ | ||
* network protocol versioning | ||
*/ | ||
|
||
-static const int PROTOCOL_VERSION = 70029; | ||
+static const int PROTOCOL_VERSION = 100000; | ||
|
||
//! initial proto version, to be increased after version/verack negotiation | ||
static const int INIT_PROTO_VERSION = 209; | ||
@@ -18,7 +18,7 @@ static const int INIT_PROTO_VERSION = 209; | ||
static const int GETHEADERS_VERSION = 31800; | ||
|
||
//! disconnect from peers older than this proto version | ||
-static const int MIN_PEER_PROTO_VERSION = 70023; | ||
+static const int MIN_PEER_PROTO_VERSION = 100000; | ||
|
||
//! nTime field added to CAddress, starting with this version; | ||
//! if possible, avoid requesting addresses nodes older than this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters