-
Notifications
You must be signed in to change notification settings - Fork 279
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
Network tests & updates #692
Merged
Merged
Commits on Dec 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1eda7f0 - Browse repository at this point
Copy the full SHA 1eda7f0View commit details
Commits on Jan 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5232b33 - Browse repository at this point
Copy the full SHA 5232b33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d55fc6 - Browse repository at this point
Copy the full SHA 7d55fc6View commit details
Commits on Feb 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e1f4359 - Browse repository at this point
Copy the full SHA e1f4359View commit details
Commits on Feb 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f893e24 - Browse repository at this point
Copy the full SHA f893e24View commit details
Commits on Feb 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2a07d3c - Browse repository at this point
Copy the full SHA 2a07d3cView commit details
Commits on Feb 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4f094d9 - Browse repository at this point
Copy the full SHA 4f094d9View commit details
Commits on Feb 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 732d627 - Browse repository at this point
Copy the full SHA 732d627View commit details
Commits on Feb 24, 2022
-
pool: Use a shorter loop to get hosts for refilling peers
Currently, pool::getHost() uses a fixed loop of 0-99 regardless of how many hosts it has in it's lists so it can use a percentage to factor in whether it should use an entry or not. Using network regtest and a single host of 127.0.0.1:14038, hsd burns a lot of CPU when refilling peers and this blocks incoming requests so much it times out. This is less noticeable the more hosts you have. Instead, use shorter loop of 10. This brings CPU utlisation on my NetBSD Xen DOMU on regtest with one host from 100% to 6% and connecting 4 to peers on testnet from 85% to 8%, allowing RPC commands to now work. Fixes handshake-org#220.
Configuration menu - View commit details
-
Copy full SHA for 721dd9a - Browse repository at this point
Copy the full SHA 721dd9aView commit details -
net: remove discoverExternal() from the pool
This commit removes the discover external check in the pool. Currently we already store all local addresses that are sent to us from peers in the hostlist, so there is no reason to rely on an external service to check for our local/external address. This was removed from bitcoin in commit 845c86d.
Configuration menu - View commit details
-
Copy full SHA for 03b962e - Browse repository at this point
Copy the full SHA 03b962eView commit details -
net-address: Add get group function.
This commit adds the getGroup function to net addresses. It allows for network addresses to be grouped into buckets, such that we can limit the number of outgoing connections per group to a certain amount. This will allow for increased connection diversity and reduced attack surface area. Co-authored-by: Nodari Chkuaselidze <nodar.chkuaselidze@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4ee4a42 - Browse repository at this point
Copy the full SHA 4ee4a42View commit details -
net-pool: Check outbound peers for same group before connecting
This commit checks the outbound peers to see which group their network addresses lives in before connecting. By doing this, we prevent a node from connecting to all outbound addresses in a very close network group bunch. This helps prevent someone spinning up multiple nodes on a similar network e.g. AWS, GCP and using those to fill other nodes' outbounds. This commit just adds 2 operations in both addOutbound and addLoader. It first checks if the new address pull from hostlist belongs in the same group as an already connected peer. If it does not, it precedes as usual, and if the connection succeeds then it adds that new outbound group to the list of groups currently connected to. Co-authored-by: Nodari Chkuaselidze <nodar.chkuaselidze@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f52e924 - Browse repository at this point
Copy the full SHA f52e924View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7d214c - Browse repository at this point
Copy the full SHA a7d214cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43f5c2c - Browse repository at this point
Copy the full SHA 43f5c2cView commit details
Commits on Mar 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 81f3736 - Browse repository at this point
Copy the full SHA 81f3736View commit details
Commits on Mar 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5fc3122 - Browse repository at this point
Copy the full SHA 5fc3122View commit details
Commits on Mar 31, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c96b6ec - Browse repository at this point
Copy the full SHA c96b6ecView commit details
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.