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

Ensure Blocks Don't Overpack With Txs #1790

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Ensure Blocks Don't Overpack With Txs #1790

wants to merge 2 commits into from

Conversation

samliok
Copy link
Contributor

@samliok samliok commented Nov 15, 2024

The maximum block size that can be sent over the network is 2MiB.

This PR adds a check to the block builder ensuring the total size of all txs included in a block is less than 1.5MiB. This extra .5MiB of wiggle room allows enough space for the other fields in the blocks to be safely included without exceeding the 2MiB limit.

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.

1 participant