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

fix(p2p): useless dials to reserved nodes which dont have a location multiaddress #2308

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

rymnc
Copy link
Member

@rymnc rymnc commented Oct 7, 2024

Linked Issues/PRs

Fixes #2298

Description

The reserved nodes that are passed into various behaviours, like gossipsub and discovery, are only used there for whitelisting. If only a PeerId is provided with /p2p/ prefix, then we should not attempt to dial such a peer since it doesn't have a location multiaddress.

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog
  • New behavior is reflected in tests
  • The specification matches the implemented behavior (link update PR if changes are needed)

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

After merging, notify other teams

[Add or remove entries as needed]

@rymnc rymnc added the no changelog Skip the CI check of the changelog modification label Oct 7, 2024
@rymnc rymnc self-assigned this Oct 7, 2024
@rymnc rymnc requested a review from a team October 7, 2024 10:52
@rymnc
Copy link
Member Author

rymnc commented Oct 7, 2024

run fuel-core with --reserved-nodes /p2p/16Uiu2HAmUjL2n1rS3gxvr45G3BvNZTPLEYZc97H1kXX5G4u1XNEe --reserved-nodes /dnsaddr/mainnet.fuel.network to test :)

@rymnc rymnc requested a review from a team October 7, 2024 18:34
@rymnc rymnc merged commit 21314d2 into master Oct 7, 2024
38 checks passed
@rymnc rymnc deleted the fix/p2p-useless-dials branch October 7, 2024 18:40
xgreenx added a commit that referenced this pull request Oct 8, 2024
## Version v0.38.0

### Added
- [2309](#2309): Limit number
of concurrent queries to the graphql service.
- [2216](#2216): Add more
function to the state and task of TxPoolV2 to handle the future
interactions with others modules (PoA, BlockProducer, BlockImporter and
P2P).
- [2263](#2263): Use the
Txpool v2 in the whole codebase.

### Removed
- [2306](#2306): Removed hack
for genesis asset contract from the code.

## What's Changed
* Updates to price algorithm by @rafal-ch in
#2292
* Removed hack from the code by @xgreenx in
#2306
* fix(p2p): useless dials to reserved nodes which dont have a location
multiaddress by @rymnc in
#2308
* Txpool v2 features for futures connections with other modules by
@AurelienFT in #2216
* Limit number of concurrent queries to the graphql service by @netrome
in #2309
* Linking TxPoolV2 in place of V1 by @AurelienFT in
#2263


**Full Changelog**:
v0.37.1...v0.38.0

---------

Co-authored-by: AurelienFT <aurelien.foucault@epitech.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Skip the CI check of the changelog modification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants