Skip to content

Commit

Permalink
rogue sync fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazyhead90 committed Jul 19, 2019
1 parent dc73463 commit 63854f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ static Checkpoints::MapCheckpoints mapCheckpoints =
( 225000, uint256("80d9b4cd48aa963c58f364e987497ae6807a3be0b699812b51c1b743147d6fe0"))
( 250000, uint256("5733cac18dfbad3a95b9343272bab90670b0df8b7ff7c0353249b9601002f64e"))
( 262639, uint256("ead6534cc6ff592028f860a9bc17aa4aa0759de6261a534e4c87d2e91890aece"))
( 272592, uint256("e99e96b15c27bf1178d124272f32b538890c30ff12548f59160d6e532ae84fad"))
( 272593, uint256("22df09ced673750e5bcf6a6af3c1084e6393013a211f73ab66b6c41d86c39edb"))
( 300000, uint256("903c79806c02cdecfd8b38caac2b85c4ceb274864796ed473f4408354c702642"))
( 350000, uint256("95dba3af31b2eee5df3e5d4bc87c7860a523a0d1efaea9b5b590ad5f8bb9acea"))
( 400000, uint256("f7f411e13a8559b82defd209611b659794ad59a2f10ef0e89630e990dedb5083"))
( 425000, uint256("2902ce1f4eed59e3757bfb0116e7eeec6da4264b934ae02bb644235e41a58f3d"))
( 450000, uint256("1a22f0fd98f1dd900108c8b5ede8de256dba79596bd781aa0dfb00bf4e2331fd"))
;

static const Checkpoints::CCheckpointData data = {
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6737,7 +6737,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
// it was the one which was commented out
int ActiveProtocol()
{
if (IsSporkActive(SPORK_18_NEW_PROTOCOL_ENFORCEMENT_3))
if (IsSporkActive(SPORK_14_NEW_PROTOCOL_ENFORCEMENT))
return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT;
return MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT;
}
Expand Down
6 changes: 3 additions & 3 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* network protocol versioning
*/

static const int PROTOCOL_VERSION = 80011;
static const int PROTOCOL_VERSION = 80012;

//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 300;
Expand All @@ -22,8 +22,8 @@ static const int INIT_PROTO_VERSION = 300;
static const int GETHEADERS_VERSION = 80000;

//! disconnect from peers older than this proto version
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 80010;
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 80011;
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 80011;
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 80012;

static const int MIN_PEER_VERSION_FIXED_SIGTIME = 80008;

Expand Down

0 comments on commit 63854f1

Please sign in to comment.