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

Change Max Payload Size #14692

Merged
merged 4 commits into from
Dec 9, 2024
Merged

Change Max Payload Size #14692

merged 4 commits into from
Dec 9, 2024

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Dec 6, 2024

What type of PR is this?

Feature Improvement

What does this PR do? Why is it needed?

This PR changes the max payload size by using a new variable to represent the uncompressed payload size so that the correct value is checked against when decoding payloads.

Which issues(s) does this PR fix?

N.A

Other notes for review

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have made an appropriate entry to CHANGELOG.md.
  • I have added a description to this PR with sufficient context for reviewers to understand this PR.

@nisdas nisdas added Ready For Review Networking P2P related items labels Dec 6, 2024
@nisdas nisdas requested a review from a team as a code owner December 6, 2024 04:34
@nisdas nisdas requested review from kasey, potuz and rkapka December 6, 2024 04:34
terencechain
terencechain previously approved these changes Dec 6, 2024
@@ -16,8 +16,9 @@ import (
var _ NetworkEncoding = (*SszNetworkEncoder)(nil)

// MaxGossipSize allowed for gossip messages.
var MaxGossipSize = params.BeaconConfig().GossipMaxSize // 10 Mib.
var MaxChunkSize = params.BeaconConfig().MaxChunkSize // 10 Mib.
var MaxGossipSize = params.BeaconConfig().GossipMaxSize // 10 Mib.
Copy link
Member

Choose a reason for hiding this comment

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

MaxGossipSize is no longer used

Copy link
Contributor

@potuz potuz left a comment

Choose a reason for hiding this comment

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

LGTM

@prestonvanloon prestonvanloon added this pull request to the merge queue Dec 9, 2024
Merged via the queue into develop with commit df81fa3 Dec 9, 2024
15 checks passed
@prestonvanloon prestonvanloon deleted the increaseMaxPayloadSize branch December 9, 2024 14:00
nisdas added a commit that referenced this pull request Dec 12, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking P2P related items
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants