-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert changes to INIT_PROTO_VERSION #2473
Conversation
ACK |
@zkbot r+ |
📌 Commit 15a9937 has been approved by |
Revert changes to INIT_PROTO_VERSION This reverts #2245 in order to fix degraded networking behavior for 1.0.10 clients.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK.
@@ -12,9 +12,26 @@ | |||
static const int PROTOCOL_VERSION = 170002; | |||
|
|||
//! initial proto version, to be increased after version/verack negotiation | |||
static const int INIT_PROTO_VERSION = 170002; | |||
static const int INIT_PROTO_VERSION = 209; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is the only revert we actually require, but agree with being conservative and reverting the entire PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tried reverting solely this change, and I still encounter degraded network behaviour. So ACK on reverting the entire PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK, but someone should double check that this resolves the problem.
@@ -103,7 +103,8 @@ class CAddress : public CService | |||
Init(); | |||
if (nType & SER_DISK) | |||
READWRITE(nVersion); | |||
if ((nType & SER_DISK) || !(nType & SER_GETHASH)) | |||
if ((nType & SER_DISK) || | |||
(nVersion >= CADDR_TIME_VERSION && !(nType & SER_GETHASH))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reversion is also necessary. nVersion
here can refer either to INIT_PROTO_VERSION
(when deserializing the address fields in the initial "version" message received from a peer), or to the final negotiated version (when deserializing later messages).
This reverts #2245 in order to fix degraded networking behavior for 1.0.10 clients.