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

Discovery Fixes #5050

Merged
merged 16 commits into from Mar 10, 2020
Merged

Discovery Fixes #5050

merged 16 commits into from Mar 10, 2020

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Mar 9, 2020

  • Read random nodes to find new nodes from our local table.
  • Bump up polling period to 30 seconds to lookup new peers.
  • Connect to discovery v5 bootnodes.

@nisdas nisdas added Ready For Review A pull request ready for code review Networking P2P related items labels Mar 9, 2020
@@ -30,7 +30,8 @@ import (

var _ = shared.Service(&Service{})

var pollingPeriod = 1 * time.Second
// check local table every 30 seconds for newly added peers.
var pollingPeriod = 30 * time.Second
Copy link
Member

Choose a reason for hiding this comment

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

is this formal enough to be defined in beacon's config.go?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not really, most of these params are only useful in the p2p package. This is just a baseline on how often to poll our local table for new peers. I think they are fine living here in this package.

@codecov
Copy link

codecov bot commented Mar 9, 2020

Codecov Report

Merging #5050 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5050   +/-   ##
=======================================
  Coverage   44.62%   44.62%           
=======================================
  Files         214      214           
  Lines       16814    16814           
=======================================
  Hits         7504     7504           
  Misses       7992     7992           
  Partials     1318     1318

beacon-chain/p2p/service.go Outdated Show resolved Hide resolved
beacon-chain/p2p/service_test.go Outdated Show resolved Hide resolved
rauljordan
rauljordan previously approved these changes Mar 9, 2020
@rauljordan
Copy link
Contributor

Tests fail @nisdas

prestonvanloon
prestonvanloon previously approved these changes Mar 10, 2020
@prestonvanloon
Copy link
Member

Discovery unit tests are failing

@nisdas nisdas dismissed stale reviews from prestonvanloon and rauljordan via 8c3373a March 10, 2020 02:02
@prestonvanloon prestonvanloon merged commit 9d27449 into master Mar 10, 2020
@delete-merged-branch delete-merged-branch bot deleted the dv5Fixes branch March 10, 2020 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking P2P related items Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants