Skip to content

Commit ddc3f15

Browse files
committed
[Consensus] spork 15 activation + protocol version bump.
[Consensus] spork 15 + min prev protocol version. (squash this later)
1 parent 216a317 commit ddc3f15

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7087,14 +7087,14 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
70877087
// it was the one which was commented out
70887088
int ActiveProtocol()
70897089
{
7090-
// SPORK_14 is used for 70913 (v3.1.0+)
7091-
if (IsSporkActive(SPORK_14_NEW_PROTOCOL_ENFORCEMENT))
7092-
return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT;
7093-
7094-
// SPORK_15 was used for 70912 (v3.0.5+), commented out now.
7095-
//if (IsSporkActive(SPORK_15_NEW_PROTOCOL_ENFORCEMENT_2))
7090+
// SPORK_14 was used for 70913 (v3.1.0+), commented out now.
7091+
//if (IsSporkActive(SPORK_14_NEW_PROTOCOL_ENFORCEMENT))
70967092
// return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT;
70977093

7094+
// SPORK_15 is used for 70916 (v3.3+)
7095+
if (IsSporkActive(SPORK_15_NEW_PROTOCOL_ENFORCEMENT_2))
7096+
return MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT;
7097+
70987098
return MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT;
70997099
}
71007100

src/version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* network protocol versioning
1212
*/
1313

14-
static const int PROTOCOL_VERSION = 70915;
14+
static const int PROTOCOL_VERSION = 70916;
1515

1616
//! initial proto version, to be increased after version/verack negotiation
1717
static const int INIT_PROTO_VERSION = 209;
@@ -20,8 +20,8 @@ static const int INIT_PROTO_VERSION = 209;
2020
static const int GETHEADERS_VERSION = 70077;
2121

2222
//! disconnect from peers older than this proto version
23-
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 70912;
24-
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 70914;
23+
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 70914;
24+
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = 70916;
2525

2626
//! masternodes older than this proto version use old strMessage format for mnannounce
2727
static const int MIN_PEER_MNANNOUNCE = 70913;

0 commit comments

Comments
 (0)