10000 chore: blocksync improv settings by czarcas7ic · Pull Request #2532 · cometbft/cometbft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: blocksync improv settings #2532

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

Conversation

czarcas7ic
Copy link
Contributor
@czarcas7ic czarcas7ic commented Mar 6, 2024

This implements a peerConnWait time that the pool routine waits before sending requests. We were previously always taking 45 seconds to start, but this was because when we started sending requests for the first x blocks, we only had a pool of peers of size 1, causing wait times to occur.

I have tested this on multiple benchmarks and there is no longer a wait time.

I have also increased the minBlocksForSingleRequest to 50.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

@czarcas7ic czarcas7ic requested review from a team as code owners March 6, 2024 22:39
@melekes
Copy link
Contributor
melekes commented Mar 7, 2024

ported over to #2475. thanks ❤️

@melekes melekes closed this Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0