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

netsync/server: Update peer heights directly. #2542

Merged
merged 1 commit into from Jan 7, 2021

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jan 3, 2021

This requires #2541.

Now that the sync manager is aware of all peers, this modifies it to update their heights upon seeing the relevant announced blocks directly instead of threading back through the server via a callback that required a goroutine to avoid the otherwise circular lock.

@davecgh davecgh added this to the 1.7.0 milestone Jan 3, 2021
@davecgh davecgh force-pushed the netsync_direct_peer_height_updates branch 2 times, most recently from 3fef472 to 167bfa3 Compare January 3, 2021 01:48
Now that the sync manager is aware of all peers, this modifies it to
update their heights upon seeing the relevant announced blocks directly
instead of threading back through the server via a callback that
required a goroutine to avoid the otherwise circular lock.
@davecgh davecgh force-pushed the netsync_direct_peer_height_updates branch from 167bfa3 to 61d1065 Compare January 7, 2021 23:15
@davecgh davecgh merged commit 61d1065 into decred:master Jan 7, 2021
@davecgh davecgh deleted the netsync_direct_peer_height_updates branch January 7, 2021 23:21
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.

None yet

4 participants