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

Discv5 #7061

Merged
merged 68 commits into from
Jul 8, 2024
Merged

Discv5 #7061

merged 68 commits into from
Jul 8, 2024

Conversation

flcl42
Copy link
Contributor

@flcl42 flcl42 commented May 22, 2024

Resolves #4721

Adds discovery v5 in the following manner:

  • discv5 enabled means discv4 disabled
  • queries for all nodes on distance to self and to 3 random nodeIDs with interval of 30 seconds
  • does not hold cache of discovered nodes, so duplicates handling is on peer pool
  • saves all peer pool active nodes on shutdown to use them for discovery after restart

alias thing

There is an outdated dependency:

PierTwo.Lantern.Discv5.WireProtocol -> PierTwo.Lantern.Discv5.Enr -> Multiformats.Hash -> Portable.BouncyCastle **1.8.5**

We plan before the next release to update Multiformats.Hash with newer version of Portable.BouncyCastle, and use updated version in PierTwo.Lantern.Discv5

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Notes on testing

OP/Base networks covered, others that have discv5 support need bootstrap peers to be added to the specs

Documentation

Requires documentation update

  • Yes
  • No

Not yet

Requires explanation in Release Notes

  • Yes
  • No

@flcl42 flcl42 marked this pull request as ready for review June 25, 2024 06:09
@flcl42 flcl42 requested review from rubo and a team as code owners June 25, 2024 06:09
Copy link
Contributor

@rubo rubo left a comment

Choose a reason for hiding this comment

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

I think we need to address this packaging issues first. Too many ugly workarounds because of that. I'd wouldn't like to have Docker files modified just because of these issues.

@flcl42
Copy link
Contributor Author

flcl42 commented Jun 25, 2024

@rubo the package has been published to the production feed; docker changes have been rolled back

@flcl42 flcl42 requested review from rubo and alexb5dh June 25, 2024 08:16
flcl42 and others added 5 commits July 2, 2024 16:57
@flcl42 flcl42 requested a review from LukaszRozmej July 2, 2024 14:36
@flcl42 flcl42 merged commit 41073e3 into master Jul 8, 2024
68 checks passed
@flcl42 flcl42 deleted the discv5 branch July 8, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

discv5 Implementation
6 participants