-
Notifications
You must be signed in to change notification settings - Fork 251
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
Adds allowed-peers Flag #688
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #688 +/- ##
==========================================
+ Coverage 61.24% 61.35% +0.11%
==========================================
Files 194 194
Lines 18207 18221 +14
==========================================
+ Hits 11150 11179 +29
+ Misses 5975 5960 -15
Partials 1082 1082 ☔ View full report in Codecov by Sentry. |
heya, do we need up update any README or docs.vechain.org for this? |
We already have a As the And for the |
Myself and @libotony did a pair-prog on this, due to flag behaviours we ended up agreeing on The TLDR is that --no-discovery + --bootnodes in certain cases can still allow connections to other nodes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking thoughts around the flag, but looks good
About the last line, is it because this is only an outgoing connection restricted list and so it doesn't imply that another node could start an incoming connection with the node (even if not in the allow-peers flag)? |
Description
Adds a new flag that limits the connections of a node.
This features help and allows for a few features like bootstrapping to be limited to a single node (good for metrics), DMZ's and traffic-shapping in general is now easier.
Flags accept a list of enodes :
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?