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

[resharding] Check proof size limit while reading delayed receipts #12721

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

Conversation

shreyan-gupta
Copy link
Contributor

This PR builds on top of #12710 and is related to issue #12701

After resharding, we copy the set of delayed receipts from parent to both children. While handling delayed receipts in the new shard, we iterated over all the delayed receipts and ignored/removed the ones that did not belong to our shard.

Due to the implementation however, we bypassed checks to the state witness size limit in the specific case of when the receipt did not belong to our shard.

Now that we are doing the checks for the state witness size within the trie recorder, it's much simper to go back and check the proof size limit after reaching EVERY delayed receipt.

@shreyan-gupta shreyan-gupta requested a review from a team as a code owner January 11, 2025 05:46
Copy link

codecov bot commented Jan 11, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 70.65%. Comparing base (6e62db1) to head (f9273dd).

Files with missing lines Patch % Lines
runtime/runtime/src/congestion_control.rs 50.00% 1 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12721      +/-   ##
==========================================
+ Coverage   70.49%   70.65%   +0.15%     
==========================================
  Files         848      848              
  Lines      173796   173800       +4     
  Branches   173796   173800       +4     
==========================================
+ Hits       122524   122803     +279     
+ Misses      46161    45870     -291     
- Partials     5111     5127      +16     
Flag Coverage Δ
backward-compatibility 0.16% <0.00%> (-0.01%) ⬇️
db-migration 0.16% <0.00%> (-0.01%) ⬇️
genesis-check 1.36% <0.00%> (?)
linux 69.21% <41.66%> (+0.10%) ⬆️
linux-nightly 70.26% <50.00%> (-0.01%) ⬇️
pytests 1.66% <0.00%> (+1.49%) ⬆️
sanity-checks 1.47% <0.00%> (?)
unittests 70.48% <50.00%> (-0.01%) ⬇️
upgradability 0.20% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Trisfald Trisfald left a comment

Choose a reason for hiding this comment

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

👍

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.

2 participants