From 37a934e6b35bea2125732d2c074998d9fe70633e Mon Sep 17 00:00:00 2001 From: John Newbery Date: Fri, 10 Jul 2020 16:48:20 +0100 Subject: [protocol] Remove unused CADDR_TIME_VERSION Add comments to CAddress serialization code explaining why it's no longer needed. --- src/version.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/version.h') diff --git a/src/version.h b/src/version.h index d932b512d4..d2a747fab3 100644 --- a/src/version.h +++ b/src/version.h @@ -20,10 +20,6 @@ static const int GETHEADERS_VERSION = 31800; //! disconnect from peers older than this proto version static const int MIN_PEER_PROTO_VERSION = GETHEADERS_VERSION; -//! nTime field added to CAddress, starting with this version; -//! if possible, avoid requesting addresses nodes older than this -static const int CADDR_TIME_VERSION = 31402; - //! BIP 0031, pong message, is enabled for all versions AFTER this one static const int BIP0031_VERSION = 60000; -- cgit v1.2.3 From 7bb6f9bfdbd3b0b5594febc9a0ae2f84e6d7add1 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Fri, 10 Jul 2020 16:52:05 +0100 Subject: [protocol] Remove unused GETHEADERS_VERSION GETHEADERS_VERSION is unused. No need to keep it in the codebase for just its historic comment. --- src/version.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/version.h') diff --git a/src/version.h b/src/version.h index d2a747fab3..e5d1f5a7f9 100644 --- a/src/version.h +++ b/src/version.h @@ -14,11 +14,8 @@ static const int PROTOCOL_VERSION = 70015; //! initial proto version, to be increased after version/verack negotiation static const int INIT_PROTO_VERSION = 209; -//! In this version, 'getheaders' was introduced. -static const int GETHEADERS_VERSION = 31800; - //! disconnect from peers older than this proto version -static const int MIN_PEER_PROTO_VERSION = GETHEADERS_VERSION; +static const int MIN_PEER_PROTO_VERSION = 31800; //! BIP 0031, pong message, is enabled for all versions AFTER this one static const int BIP0031_VERSION = 60000; -- cgit v1.2.3