Skip to content
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

Update pull gossip params to be less bursty #498

Merged
merged 44 commits into from
Feb 29, 2024
Merged

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

Currently - we send 10 pull gossip requests every 10 seconds. This means that the node will only discover transactions from pull gossip every ~10 seconds.

Additionally, the 10 nodes we send requests to may send us duplicate transaction data because we send the same bloom filter to all nodes.

This change spreads these requests evenly throughout the 10 second window by sending 1 request every second.

This should result in no change in bandwidth (perhaps a slight decrease) and improve the transaction discovery latency.

How this works

defaultPullGossipFrequency = 10 * time.Second
txGossipPollSize           = 10

to

defaultPullGossipFrequency = 1 * time.Second
txGossipPollSize           = 1

How this was tested

  • CI

Base automatically changed from gossip-cleanup to master February 29, 2024 01:36
@StephenButtolph StephenButtolph enabled auto-merge (squash) February 29, 2024 01:38
@StephenButtolph StephenButtolph merged commit ca2e459 into master Feb 29, 2024
8 checks passed
@StephenButtolph StephenButtolph deleted the steady-pull-gossip branch February 29, 2024 01:53
oxbee pushed a commit to taurusgroup/coreth that referenced this pull request Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants