Skip to content
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

Merged
merged 2 commits into from
Jun 24, 2017

Conversation

ebfull
Copy link
Contributor

@ebfull ebfull commented Jun 24, 2017

This reverts #2245 in order to fix degraded networking behavior for 1.0.10 clients.

@bitcartel
Copy link
Contributor

ACK

@ebfull
Copy link
Contributor Author

ebfull commented Jun 24, 2017

@zkbot r+

@zkbot
Copy link
Contributor

zkbot commented Jun 24, 2017

📌 Commit 15a9937 has been approved by ebfull

@zkbot
Copy link
Contributor

zkbot commented Jun 24, 2017

⌛ Testing commit 15a9937 with merge 1605da7...

zkbot added a commit that referenced this pull request Jun 24, 2017
Revert changes to INIT_PROTO_VERSION

This reverts #2245 in order to fix degraded networking behavior for 1.0.10 clients.
Copy link
Contributor

@str4d str4d left a 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;
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

@daira daira left a 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.

@zkbot
Copy link
Contributor

zkbot commented Jun 24, 2017

☀️ Test successful - pr-merge
Approved by: ebfull
Pushing 1605da7 to master...

@zkbot zkbot merged commit 15a9937 into zcash:master Jun 24, 2017
@@ -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)))
Copy link
Contributor

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).

@daira daira added A-networking Area: Networking code I-regression This is a regression, i.e. something that previously worked but now does not due to a change we made labels Jun 24, 2017
@daira daira added this to the 1.0.10-1 Release milestone Jun 24, 2017
@daira daira added this to Blocked in Security and Stability Jul 3, 2017
@daira daira moved this from Blocked to Complete in Security and Stability Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Area: Networking code I-regression This is a regression, i.e. something that previously worked but now does not due to a change we made
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants