Skip to content

Commit

Permalink
[Consensus] Bump Active Protocol version to 70923 for v5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra authored and furszy committed Aug 10, 2021
1 parent b63e4f5 commit ecde04a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4129,14 +4129,14 @@ void static CheckBlockIndex()
// it was the one which was commented out
int ActiveProtocol()
{
// SPORK_14 is used for 70922 (v5.2.0)
if (sporkManager.IsSporkActive(SPORK_14_NEW_PROTOCOL_ENFORCEMENT))
return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT;

// SPORK_15 was used for 70921 (v5.0.1), commented out now.
//if (sporkManager.IsSporkActive(SPORK_15_NEW_PROTOCOL_ENFORCEMENT_2))
// SPORK_14 was used for 70922 (v5.2.0), commented out now.
//if (sporkManager.IsSporkActive(SPORK_14_NEW_PROTOCOL_ENFORCEMENT))
// return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT;

// SPORK_15 is used for 70923 (v5.3.0)
if (sporkManager.IsSporkActive(SPORK_15_NEW_PROTOCOL_ENFORCEMENT_2))
return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT;

return MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT;
}

Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ static const int INIT_PROTO_VERSION = 209;
static const int GETHEADERS_VERSION = 70077;

//! disconnect from peers older than this proto version
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 70921;
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 70922;
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 70922;
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 70923;

//! peers with version older than this, could relay invalid (stale) mn pings
static const int MIN_PEER_CACHEDVERSION = 70921;
Expand Down

0 comments on commit ecde04a

Please sign in to comment.