Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Up the limit of random connections to gossip #359

Merged
merged 1 commit into from
Jun 21, 2021

Conversation

jadeallenx
Copy link
Contributor

@jadeallenx jadeallenx commented Jun 18, 2021

Problems to solve: Currently we are gossiping a maximum of 8 connections which is not a lot on something like a seed node where may have 10,000 or more. Additionally, lists/sublist/2 allows for the length of a sublist to be longer than the input - so using a conditional doesn't make much sense (except to avoid the randomization/sorting but on a short list, it costs almost nothing anyway).

Solution: Up to the default limit to 200, remove the conditional test. In my testing on this, we could probably store closer to 1500 connections and be under the 50 kb gossip limit.

Addresses #352

@jadeallenx jadeallenx merged commit a13a084 into master Jun 21, 2021
@jadeallenx jadeallenx deleted the mra/more_random_connections branch June 21, 2021 19:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants