Skip to content

Commit

Permalink
Merge pull request #99 from anonymousbitcoin/v2/turn_off_old_protocol
Browse files Browse the repository at this point in the history
Discontinue old protocol 180005
  • Loading branch information
nlevo authored Jan 31, 2019
2 parents 4a95f90 + 76652e5 commit 5d4afa5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/governance-object.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class CGovernanceObject;
class CGovernanceVote;

static const int MAX_GOVERNANCE_OBJECT_DATA_SIZE = 16 * 1024;
static const int MIN_GOVERNANCE_PEER_PROTO_VERSION = 180005;
static const int GOVERNANCE_FILTER_PROTO_VERSION = 180005;
static const int MIN_GOVERNANCE_PEER_PROTO_VERSION = 180006;
static const int GOVERNANCE_FILTER_PROTO_VERSION = 180006;

static const double GOVERNANCE_FILTER_FP_RATE = 0.001;

Expand Down
2 changes: 1 addition & 1 deletion src/masternodeman.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class CMasternodeMan

static const int LAST_PAID_SCAN_BLOCKS = 100;

static const int MIN_POSE_PROTO_VERSION = 180005;
static const int MIN_POSE_PROTO_VERSION = 180006;
static const int MAX_POSE_CONNECTIONS = 10;
static const int MAX_POSE_RANK = 10;
static const int MAX_POSE_BLOCKS = 10;
Expand Down
5 changes: 3 additions & 2 deletions src/sendalert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ void ThreadSendAlert()
// These versions are protocol versions
// 180004 : 1.0.0
// 180005 : 1.2.0
alert.nMinVer = 180004;
alert.nMaxVer = 180005;
// 180006 : 2.0.0
alert.nMinVer = 180006;
alert.nMaxVer = 180007;

//
// main.cpp:
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 180005;
static const int MIN_PEER_PROTO_VERSION = 180006;

//! nTime field added to CAddress, starting with this version;
//! if possible, avoid requesting addresses nodes older than this
Expand Down

0 comments on commit 5d4afa5

Please sign in to comment.