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

service/header: remove start/stop from P2PExchange #367

Merged
merged 2 commits into from
Jan 20, 2022

Conversation

Bidon15
Copy link
Member

@Bidon15 Bidon15 commented Jan 19, 2022

Change config to log warnings with missing trusted peer
In HeaderExchangeP2P func we are creating an addr for the host instead of making it in the removed connect
Removed store in p2pExchange

Now, instead of handling connection ourselves, we are delegating this to libp2p itself and only creating NewStream in performRequest func in p2p_exchange.go

Solves the issue panic of closing a closed channel #350

Co-authored-by: @Wondertan

Change config to log warnings with missing trusted peer
In HeaderExchangeP2P func we are creating an addr for the host instead of making it in the removed connect
Removed store in p2pExchange

Co-authored-by: Wondertan <hlibwondertan@gmail.com>
@Bidon15 Bidon15 added area:config CLI and config area:header Extended header area:p2p swamp Related to Integration tests labels Jan 19, 2022
@Bidon15 Bidon15 requested a review from liamsi as a code owner January 19, 2022 16:25
@Bidon15 Bidon15 self-assigned this Jan 19, 2022
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve as done together in sync and I have nothing more to add here

Copy link
Member

@renaynay renaynay 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 LGTM

@Bidon15 Bidon15 merged commit fc9ee03 into celestiaorg:main Jan 20, 2022
@Bidon15 Bidon15 deleted the refactor_p2p_exchange branch January 20, 2022 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:config CLI and config area:header Extended header area:p2p swamp Related to Integration tests
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants