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

Validate consistency of chunk Start and End states #6871

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tim-barry
Copy link
Contributor

Ensure the receipt validator (consensus node) verifies that each chunk's end state is the same as the next chunk's start state.

The requirement that the first chunk's starting state matches the end state from the previous execution result is already checked in resultChainCheck.

Issue: https://github.com/onflow/flow-go-internal/issues/5491

Receipt validator checks that `chunk[i].EndState == chunk[i+1].StartState`
Modify ChunkListFixture to have consistent chunk start and end states.
Previously, chunk start and end states were assigned independently,
resulting in invalid execution receipts being used in tests.
@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2025

Codecov Report

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

Project coverage is 41.17%. Comparing base (5ba9d90) to head (178a9a2).

Files with missing lines Patch % Lines
utils/unittest/fixtures.go 0.00% 7 Missing ⚠️
engine/verification/utils/unittest/fixture.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6871      +/-   ##
==========================================
- Coverage   41.18%   41.17%   -0.01%     
==========================================
  Files        2109     2109              
  Lines      185660   185665       +5     
==========================================
- Hits        76468    76452      -16     
- Misses     102779   102801      +22     
+ Partials     6413     6412       -1     
Flag Coverage Δ
unittests 41.17% <50.00%> (-0.01%) ⬇️

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.

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