-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat(op-node): gater unblock #9763
Conversation
Warning Rate Limit Exceeded@felipe-op has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 11 minutes and 51 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe recent updates focus on enhancing the peer connection management and logging within a P2P network module. Specifically, these changes introduce a method for unblocking peers, improve the logging for peer and address ban expiry checks, and ensure consistency in error handling and logging. Additionally, the updates refine the process of disconnecting peers by incorporating an unblock step, ensuring a cleaner disconnection and management of peer connections. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9763 +/- ##
===========================================
- Coverage 28.73% 0.62% -28.12%
===========================================
Files 162 89 -73
Lines 7144 2398 -4746
Branches 1309 560 -749
===========================================
- Hits 2053 15 -2038
+ Misses 4985 2383 -2602
+ Partials 106 0 -106
Flags with carried forward coverage won't be shown. Click here to find out more. |
Semgrep found 10
Named return arguments to functions must be appended with an underscore ( Semgrep found 2 Prefer |
7f25beb
to
a5f3c4a
Compare
Description
This change implements the UnblockPeer in
ExpiryConnectionGater
so we can externally clear the node from being banned. It also automatically clears the state on authoritative disconnects.Tests
go test ./...
Meta
Part of https://github.com/ethereum-optimism/devinfra-pod/issues/38