-
Notifications
You must be signed in to change notification settings - Fork 654
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
Increase MAX_COMPRESSED_STATE_WITNESS_SIZE to 48 MiB #11683
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11683 +/- ##
==========================================
- Coverage 71.75% 71.75% -0.01%
==========================================
Files 790 790
Lines 161830 161838 +8
Branches 161830 161838 +8
==========================================
+ Hits 116114 116119 +5
- Misses 40678 40681 +3
Partials 5038 5038
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I'd also increase MAX_UNCOMPRESSED_STATE_WITNESS_SIZE
2x to be 128mib, assuming compression is on avg decreases the size 2 times.
another nit: please update WITNESS_PARTS_CACHE_SIZE
comment
You're right, they should be different. Let's set Updated comment. |
The `MAX_COMPRESSED_STATE_WITNESS_SIZE` has been set to 32 MiB in #11511. Back then it was a reasonable choice, but since then we increased some of the runtime parameters, which increased the worst case witness size by ~17MiB. (#11582, #11629). I'd feel safer with a larger limit on the compressed witness size.
The
MAX_COMPRESSED_STATE_WITNESS_SIZE
has been set to 32 MiB in #11511. Back then it was a reasonable choice, but since then we increased some of the runtime parameters, which increased the worst case witness size by ~17MiB. (#11582, #11629). I'd feel safer with a larger limit on the compressed witness size.