-
Notifications
You must be signed in to change notification settings - Fork 665
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
[stateless_validaiton] Skip validation of state witness for chunk right after genesis #10487
[stateless_validaiton] Skip validation of state witness for chunk right after genesis #10487
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #10487 +/- ##
========================================
Coverage 71.93% 71.94%
========================================
Files 720 720
Lines 145620 145776 +156
Branches 145620 145776 +156
========================================
+ Hits 104755 104872 +117
- Misses 36057 36082 +25
- Partials 4808 4822 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -421,10 +407,54 @@ fn apply_result_to_chunk_extra( | |||
) | |||
} | |||
|
|||
fn send_chunk_endorsement_to_block_producers( |
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.
We could name it endorse_chunk
for demonstrativeness. Not a strong opinion
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.
I like the current name as it's more explicit
Co-authored-by: Aleksandr Logunov <[email protected]>
We are skipping state witness validation for the chunk right after genesis chunk due to some complications of trying to run the genesis chunk in runtime (it's not possible to do so).
Initially this edge case check was a part of
send_chunk_state_witness_to_chunk_validators
and we didn't send state witness at all.This has an issue that we do not process and send chunk endorsements either due to this. Instead pushed this check into
process_chunk_state_witness
and we send chunk endorsements for this special case.