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

BlockSync should remove syncPeers when peer disconnects #92

Closed
magik6k opened this issue Jul 26, 2019 · 3 comments · Fixed by #4754
Closed

BlockSync should remove syncPeers when peer disconnects #92

magik6k opened this issue Jul 26, 2019 · 3 comments · Fixed by #4754
Assignees
Labels
area/chain Area: Chain P2 P2: Should be resolved

Comments

@magik6k
Copy link
Contributor

magik6k commented Jul 26, 2019

Should be easy with libp2p eventbus

@magik6k magik6k added the chain label Jul 26, 2019
@whyrusleeping
Copy link
Member

So, I thought we could close this, but i think theres some things that arent quite wired up. The peer manager gets passed into the blocksync client, but its then never really used.

Relooking through this code, it seems like we're duplicating a good deal of tracking code here.

@arajasek
Copy link
Contributor

arajasek commented Nov 4, 2020

@schomatis Hey, not sure if you have any insight into this, but do you think it might have been solved in the blocksync refactor?

@schomatis
Copy link
Contributor

@schomatis Hey, not sure if you have any insight into this, but do you think it might have been solved in the blocksync refactor?

No, the blocksync refactor (now chain exchange) didn't modify any of the peer tracking code (which I frankly don't really understand, I basically just moved the code to its own file).

I could take ownership of this but I would first need someone to work on the spec side to clearly document in detail how the different cases should be handled.

@jennijuju jennijuju added the need/team-input Hint: Needs Team Input label Nov 5, 2020
@jennijuju jennijuju added P2 P2: Should be resolved and removed need/team-input Hint: Needs Team Input labels Nov 5, 2020
nonsense added a commit that referenced this issue Nov 6, 2020
dumikau pushed a commit to protofire/lotus that referenced this issue Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chain Area: Chain P2 P2: Should be resolved
Projects
None yet
7 participants