Skip to content

Commit 2c669fa

Browse files
committed
New Version and Spork Enforcement
1 parent 23e04ca commit 2c669fa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -5528,6 +5528,7 @@ bool static ProcessMessage(CNode* pfrom, std::string strCommand, CDataStream& vR
55285528
!pSporkDB->SporkExists(SPORK_15_NEW_PROTOCOL_ENFORCEMENT_2) &&
55295529
!pSporkDB->SporkExists(SPORK_19_NEW_PROTOCOL_ENFORCEMENT_3) &&
55305530
!pSporkDB->SporkExists(SPORK_21_NEW_PROTOCOL_ENFORCEMENT_4) &&
5531+
!pSporkDB->SporkExists(SPORK_22_NEW_PROTOCOL_ENFORCEMENT_5) &&
55315532
!pSporkDB->SporkExists(SPORK_16_ZEROCOIN_MAINTENANCE_MODE);
55325533

55335534
if (fMissingSporks || !fRequestedSporksIDB){
@@ -6412,6 +6413,10 @@ bool static ProcessMessage(CNode* pfrom, std::string strCommand, CDataStream& vR
64126413
// it was the one which was commented out
64136414
int ActiveProtocol()
64146415
{
6416+
// SPORK_22, used for 2.1.5.0
6417+
if (IsSporkActive(SPORK_22_NEW_PROTOCOL_ENFORCEMENT_5))
6418+
return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT_5;
6419+
64156420
// SPORK_21, used for 2.1.4.0
64166421
if (IsSporkActive(SPORK_21_NEW_PROTOCOL_ENFORCEMENT_4))
64176422
return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT_4;

src/version.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* network protocol versioning
1212
*/
1313

14-
static const int PROTOCOL_VERSION = 70106;
14+
static const int PROTOCOL_VERSION = 70107;
1515

1616
//! initial proto version, to be increased after version/verack negotiation
1717
static const int INIT_PROTO_VERSION = 210;
@@ -25,6 +25,7 @@ static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 70103;
2525
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT_2 = 70104;
2626
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT_3 = 70105;
2727
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT_4 = 70106;
28+
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT_5 = 70107;
2829

2930
//! masternodes older than this proto version use old strMessage format for mnannounce
3031
static const int MIN_PEER_MNANNOUNCE = 70101;

0 commit comments

Comments
 (0)