-
Notifications
You must be signed in to change notification settings - Fork 153
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
Block static peers in autopeering module #1608
Merged
Merged
+98
−25
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
muXxer
force-pushed
the
feat/autopeering-block-static-peers
branch
from
July 11, 2022 15:38
7d3a72f
to
e62aa5c
Compare
alexsporn
reviewed
Jul 11, 2022
alexsporn
reviewed
Jul 11, 2022
alexsporn
reviewed
Jul 11, 2022
muXxer
force-pushed
the
feat/autopeering-block-static-peers
branch
from
July 12, 2022 09:30
ca83309
to
15fb50d
Compare
alexsporn
approved these changes
Jul 12, 2022
muXxer
force-pushed
the
feat/autopeering-block-static-peers
branch
from
July 12, 2022 15:27
15fb50d
to
4669431
Compare
muXxer
added a commit
that referenced
this pull request
Dec 27, 2022
* Block static peers in autopeering module * Disable TTL in selection blocklist * Use hive.go chrysalis backports
muXxer
added a commit
that referenced
this pull request
Jan 9, 2023
* Use iotaledger repository * Update go version to 1.19 * Upgrade libp2p to monorepo version * Fix libp2p connection issue (#1533) * Use fixed private keys in peering tests * Fix libp2p connection issue * Send correct error message if a block is submitted without parents and no PoW is enabled * Add new `/api/routes` endpoint * Block static peers in autopeering module (#1608) * Block static peers in autopeering module * Disable TTL in selection blocklist * Use hive.go chrysalis backports * Avoid locking of the p2p Manager while connection attempts are performed (#1614) * Avoid locking of the p2p Manager while connection attempts are performed * Fix missing handling of peers already known to the manager * Add per-request Rest metrics to prometheus (#1651) * - Add per-request Rest metrics to prometheus * - Made echo dep optional * Extend dockerignore (#1660) * Add new config param to disable snapshot file creation. Defaults to false. (#1711) * Add config parameter to control whether the ledger state is checked on startup. Defaults to false. (#1712) * Add config parameter to control whether the ledger state is checked on startup * Measure and log ledger check time * Added a ledger token supply check to the db-hash tool * Drop unhealthy peers (#1736) * Drop peers that are below our pruning index (#1739) * Fix stuck peer (#1752) * Removed OpenedStream/ClosedStream since they were removed from network.Notifee * Drop connection to peer if the stream is closed * Solidify messages synchronously while they are processed (#1761) * Solidify messages synchronously while they are processed * Only trigger the future cone solidifier if the message is solid * Fix edge case in warpsync which deadlocks syncing (#1763) * Github workflow updates * Update CodeQL action to v2 * Run security-and-quality query suite * Update actions/checkout to v3 * Update docker actions * Add /metadata, /raw, /children endpoints to /included-message * Release v1.2.2 * Read info from SyncManager atomically * Add timestamp funcs to MilestoneStorage * Update workflows * Fix linter errors * Add context to connect and reconnect peer * Fix syncing issue by preventing requests race condition * Address review comments * Update modules * Ignore linter warning Co-authored-by: Alexander Sporn <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It may happen that static peers (known/unknown relation) are also found via autopeering.
If that happens, the autopeering module tries to establish another connection, which is dropped because the peer is already known.
This PR tries to avoid this problem by utilizing the blocklist of the autopeering module.
Static peers are added to the blocklist of the autopeering module, so that the selection protocol ignores connection request from these peers.