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

[sync] add soft cap option for DNS GetBlock response #3767

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JackyWYX
Copy link
Contributor

Issue

As mentioned in #3766, the GetBlock request can be huge due to large block size. The request size is currently capped cat 4MB. But large responses are not good, and small responses are preferred. Thus, add SoftSizeCap in GetBlock request as a soft cap for response size. The only exception is that if one block's size is greater than this value, SoftSizeCap is ignored.

All changes are backward compatible.

Test

Currently, don't have a very good way to test it out. Please let me know if there any situation can reach this piece of code before launch. Thanks

@JackyWYX JackyWYX requested review from rlan35 and LeoHChen June 11, 2021 09:41
@JackyWYX JackyWYX self-assigned this Jun 11, 2021
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