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

Get negotiated Gossip protocol version from either inbound or outbound stream #160

Merged
merged 2 commits into from
Dec 1, 2020

Conversation

Nashatyrev
Copy link
Collaborator

Addition to PR #136 :
when the outbound Gossip stream is not created yet and remote Gossip peer (just connected) sends GRAFT to which we want respond with PRUNE causes exception (see Consensys/teku#2836).
This is because the GossipRouter.enqueuePrune needs the negotiated Gossip version to respond properly (Gossip v1.1 should be backward compatible with v1.0) and the version is retrieved from outbound stream. As the outbound stream can be not created yet the version can be retrieved from the inbound stream with the same result. One of inbound or outbound stream should 100% exist

Fixes Teku issue Consensys/teku#2836 when new version integrated

@Nashatyrev Nashatyrev closed this Nov 17, 2020
@Nashatyrev Nashatyrev deleted the fix/gossip-no-outbound-for-prune branch November 17, 2020 11:39
@Nashatyrev Nashatyrev restored the fix/gossip-no-outbound-for-prune branch December 1, 2020 13:45
@Nashatyrev
Copy link
Collaborator Author

Looks this PR was closed accidentally via deleting its branch

@Nashatyrev Nashatyrev reopened this Dec 1, 2020
@Nashatyrev Nashatyrev merged commit 1387559 into develop Dec 1, 2020
@Nashatyrev Nashatyrev mentioned this pull request Dec 4, 2020
Nashatyrev added a commit that referenced this pull request Dec 4, 2020
Release 0.6.3
* Get negotiated Gossip protocol version from either inbound or outbound stream (#160)
* Fix unfair IWANT penalty (#166)
* Fix 2 flaky tests, clean up build (#168)
@ajsutton ajsutton deleted the fix/gossip-no-outbound-for-prune branch December 6, 2020 20:54
@ajsutton ajsutton restored the fix/gossip-no-outbound-for-prune branch December 6, 2020 20:54
@Nashatyrev Nashatyrev deleted the fix/gossip-no-outbound-for-prune branch July 4, 2022 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants