Skip to content

Commit d4833ff

Browse files
committed
Bump the protocol version to distinguish new banning behavior.
This allows future software that would relay compact blocks before full validation to announce only to peers that will not ban if the block turns out to be invalid.
1 parent 88c3549 commit d4833ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/version.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* network protocol versioning
1010
*/
1111

12-
static const int PROTOCOL_VERSION = 70014;
12+
static const int PROTOCOL_VERSION = 70015;
1313

1414
//! initial proto version, to be increased after version/verack negotiation
1515
static const int INIT_PROTO_VERSION = 209;
@@ -42,4 +42,7 @@ static const int FEEFILTER_VERSION = 70013;
4242
//! short-id-based block download starts with this version
4343
static const int SHORT_IDS_BLOCKS_VERSION = 70014;
4444

45+
//! not banning for invalid compact blocks starts with this version
46+
static const int INVALID_CB_NO_BAN_VERSION = 70015;
47+
4548
#endif // BITCOIN_VERSION_H

0 commit comments

Comments
 (0)