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

Connected blocksync requests and network polling thread #244

Merged
merged 6 commits into from
Mar 2, 2020

Conversation

austinabell
Copy link
Contributor

Summary of changes
Changes introduced in this pull request:

  • Seperated network event handling into it's own thread via NetworkHandler
    • Uses the libp2p network channel to split into two channels: RPC to be handled by blocksync req/res and network event channel for pubsub messages and hello
  • Updated SyncNetworkContext to include this RPC channel to be able to await the RPC response from the libp2p node with timeout instead of just returning the request ID

Currently until we have hello pulled in, you cannot during runtime send to a dialed peer so it's just sending to a random PeerID and timing out but it is connected and sending the requests through the libp2p service

Reference issue to close (if applicable)

Closes #207

Other information and links

@austinabell austinabell merged commit a43df30 into master Mar 2, 2020
@austinabell austinabell deleted the austin/bsynccon branch March 2, 2020 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Network Libp2p and PubSub stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Requesting Tipsets via Blocksync
3 participants