Skip to content

Commit

Permalink
Merge #2900: [Core] Bump Protocol Version to 70927
Browse files Browse the repository at this point in the history
9b7b246 Update Protocol Version 70927 (Liquid)

Pull request description:

  As we integrate new Exchange Addresses into our system, its crucial to ensure compatibility and prevent potential conflicts arising from the new address prefix. So we are updating the protocol version to eliminate any compatibility issues or potentials to fork.

ACKs for top commit: 9b7b246
  Fuzzbawls:
    ACK 9b7b246
  Duddino:
    tACK 9b7b246

Tree-SHA512: 960caecb5b49874f797df91b2686a3af8db655c0e4aa88964ecef64a451a5878b005ad8cd4ae33a6092961cd531a0355942367ea235a47ef5e7dddc1b5c86015
  • Loading branch information
Fuzzbawls committed Feb 17, 2024
2 parents badb446 + 9b7b246 commit 9a60dd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4211,13 +4211,13 @@ void static CheckBlockIndex()
int ActiveProtocol()
{
// SPORK_14 is used for 70926 (v5.5.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), commented out now.
//if (sporkManager.IsSporkActive(SPORK_15_NEW_PROTOCOL_ENFORCEMENT_2))
//if (sporkManager.IsSporkActive(SPORK_14_NEW_PROTOCOL_ENFORCEMENT))
// return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT;

// SPORK_15 is used for 70927 (v5.6.0), commented out now.
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
6 changes: 3 additions & 3 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
* network protocol versioning
*/

static const int PROTOCOL_VERSION = 70926;
static const int PROTOCOL_VERSION = 70927;

//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;

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

//! Version where BIP155 was introduced
static const int MIN_BIP155_PROTOCOL_VERSION = 70923;
Expand Down
2 changes: 1 addition & 1 deletion test/functional/test_framework/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from .util import hex_str_to_bytes

MIN_VERSION_SUPPORTED = 60001
MY_VERSION = 70925
MY_VERSION = 70926
MY_SUBVERSION = "/python-mininode-tester:0.0.3/"
MY_RELAY = 1 # from version 70001 onwards, fRelay should be appended to version messages (BIP37)

Expand Down

0 comments on commit 9a60dd8

Please sign in to comment.