aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2016-11-01 11:12:43 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2016-11-01 15:27:20 -0400
commite8ef50ba51968da67a36c9fae6938d868b434da2 (patch)
treee42679a60fb3ff42e3b91da5565eac68f99eb418
parent015865ee9e5dd450ceb6cece489f924aaa1137e3 (diff)
downloadbitcoin-e8ef50ba51968da67a36c9fae6938d868b434da2.tar.xz
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.
-rw-r--r--src/version.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/version.h b/src/version.h
index 68ccd6d378..497f82be23 100644
--- a/src/version.h
+++ b/src/version.h
@@ -9,7 +9,7 @@
* network protocol versioning
*/
-static const int PROTOCOL_VERSION = 70014;
+static const int PROTOCOL_VERSION = 70015;
//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;
@@ -42,4 +42,7 @@ static const int FEEFILTER_VERSION = 70013;
//! shord-id-based block download starts with this version
static const int SHORT_IDS_BLOCKS_VERSION = 70014;
+//! not banning for invalid compact blocks starts with this version
+static const int INVALID_CB_NO_BAN_VERSION = 70015;
+
#endif // BITCOIN_VERSION_H