Skip to content

feat(p2p): run periodic bootstrap discovery #783

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

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

msbrogli
Copy link
Member

@msbrogli msbrogli commented Sep 22, 2023

Motivation

The DNS bootstrap mechanism used to run only when there were no longer any connections, however it's better to run it periodically to pick up new DNS records.

Acceptance Criteria

  • move PeerDiscovery object from HathorManager to ConnectionsManager
  • add new settings PEER_DISCOVERY_INTERVAL with interval that discovery should run again

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@msbrogli msbrogli requested a review from glevco September 22, 2023 22:41
@msbrogli msbrogli self-assigned this Sep 22, 2023
@msbrogli msbrogli changed the base branch from master to feat/p2p-peer-relay September 22, 2023 22:52
@msbrogli msbrogli force-pushed the feat/p2p-periodic-bootstrap-discovery branch from 501ce63 to d544581 Compare September 22, 2023 22:53
@msbrogli msbrogli force-pushed the feat/p2p-peer-relay branch 2 times, most recently from f994480 to a6ceae7 Compare September 23, 2023 00:56
@jansegre jansegre self-assigned this Sep 26, 2023
@jansegre jansegre force-pushed the feat/p2p-periodic-bootstrap-discovery branch from d544581 to d0f737d Compare September 26, 2023 21:57
@jansegre jansegre changed the title feat(p2p): Run periodic bootstrap discovery feat(p2p): run periodic bootstrap discovery Sep 27, 2023
@jansegre jansegre force-pushed the feat/p2p-periodic-bootstrap-discovery branch from d0f737d to ef28db0 Compare September 27, 2023 19:02
@jansegre jansegre changed the base branch from feat/p2p-peer-relay to master September 27, 2023 20:33
@jansegre jansegre force-pushed the feat/p2p-periodic-bootstrap-discovery branch from ef28db0 to a064ca1 Compare September 28, 2023 14:34
@jansegre jansegre marked this pull request as ready for review September 28, 2023 15:27
@jansegre jansegre self-requested a review as a code owner September 28, 2023 15:27
@jansegre jansegre force-pushed the feat/p2p-periodic-bootstrap-discovery branch from a064ca1 to c968aea Compare October 2, 2023 12:38
@codecov
Copy link

codecov bot commented Oct 2, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (9a37b94) 84.68% compared to head (c968aea) 84.64%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #783      +/-   ##
==========================================
- Coverage   84.68%   84.64%   -0.04%     
==========================================
  Files         264      264              
  Lines       22020    22024       +4     
  Branches     3367     3367              
==========================================
- Hits        18647    18643       -4     
- Misses       2721     2727       +6     
- Partials      652      654       +2     
Files Coverage Δ
hathor/conf/settings.py 97.18% <100.00%> (+0.01%) ⬆️
hathor/manager.py 81.17% <100.00%> (-0.42%) ⬇️
hathor/builder/cli_builder.py 74.48% <66.66%> (ø)
hathor/p2p/manager.py 73.44% <96.42%> (+2.05%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jansegre jansegre merged commit 064f84b into master Oct 2, 2023
@jansegre jansegre deleted the feat/p2p-periodic-bootstrap-discovery branch October 2, 2023 14:18
This was referenced Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants