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

bss: increase read limit for bfg conn to 2 MiB #194

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

joshuasing
Copy link
Contributor

Summary
Increase the read limit in BSS for the BFG connection to 2 MiB (previously 512 KiB).

When there is a lot of active PoP Miners broadcasting transactions, the pop-txs-for-l2-block response from BFG becomes too large for BSS to read. This increases the read limit to temporarily avoid this problem.

Related to: #193

Changes

  • Add protocol.ConnOptions which can be used to provide options when creating a protocol.Conn.
  • Increase the BSS -> BFG connection read limit to 2 MiB (previously 512 KiB).

@joshuasing joshuasing added type: refactor This refactors existing functionality type: bug This is a bug size: S This change is small (+/- <80) labels Aug 2, 2024
@joshuasing joshuasing requested a review from a team as a code owner August 2, 2024 10:10
@github-actions github-actions bot added area: bss This is a change to BSS (Bitcoin Secure Sequencer) area: popm This is a change to popm (PoP Miner) labels Aug 2, 2024
Copy link
Contributor

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@ClaytonNorthey92 ClaytonNorthey92 merged commit 9557ba7 into main Aug 2, 2024
6 checks passed
@ClaytonNorthey92 ClaytonNorthey92 deleted the joshua/increase-bss-read-limit branch August 2, 2024 13:53
web3cryptoguy pushed a commit to web3cryptoguy/heminetwork that referenced this pull request Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: bss This is a change to BSS (Bitcoin Secure Sequencer) area: popm This is a change to popm (PoP Miner) size: S This change is small (+/- <80) type: bug This is a bug type: refactor This refactors existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants