Closed jancionear closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 71.75%. Comparing base (
cf00e1b
) to head (3181517
). Report is 4 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
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 updateWITNESS_PARTS_CACHE_SIZE
comment
You're right, they should be different. Let's set MAX_COMPRESSED_STATE_WITNESS_SIZE
to 48 MiB and MAX_UNCOMPRESSED_STATE_WITNESS_SIZE
to 64MiB. I don't expect uncompressed witnesses to be larger than 64 MiB.
Updated comment.
The
MAX_COMPRESSED_STATE_WITNESS_SIZE
has been set to 32 MiB in https://github.com/near/nearcore/pull/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. (https://github.com/near/nearcore/pull/11582, https://github.com/near/nearcore/pull/11629). I'd feel safer with a larger limit on the compressed witness size.