Skip to content

eth/downloader: match capabilities when querying idle peers#1866

Merged
obscuren merged 1 commit intoethereum:developfrom
karalabe:honor-eth-capabilities
Oct 2, 2015
Merged

eth/downloader: match capabilities when querying idle peers#1866
obscuren merged 1 commit intoethereum:developfrom
karalabe:honor-eth-capabilities

Conversation

@karalabe
Copy link
Copy Markdown
Member

@karalabe karalabe commented Oct 2, 2015

This PR fixes a capability matching issue in the downloader. Although we correctly stored the eth protocol version for each of our peers and correctly selected the sync packages to use depending on the protocol currently being synced with, when retrieving idle peers to assign new tasks to I returned all available peers and forgot to check that they can indeed talk the protocol being synced on. Fixing this simply entailed in separating eth/61 peers from eth/62+ peers. This will still exhibit a similar issue when going up to eth/63, but idle peer retrieval was rewritten in eth/63 so that will be sorted out in a different way.

@robotally
Copy link
Copy Markdown

Vote Count Reviewers
👍 2 @Gustav-Simonsson @obscuren
👎 0

Updated: Fri Oct 2 10:47:39 UTC 2015

@obscuren
Copy link
Copy Markdown
Contributor

obscuren commented Oct 2, 2015

👍

1 similar comment
@Gustav-Simonsson
Copy link
Copy Markdown

👍

obscuren added a commit that referenced this pull request Oct 2, 2015
eth/downloader: match capabilities when querying idle peers
@obscuren obscuren merged commit 8b865fa into ethereum:develop Oct 2, 2015
@obscuren obscuren removed the review label Oct 2, 2015
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.

4 participants