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

[Access] Fix panic converting execution data to protobuf messages #3892

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

peterargue
Copy link
Contributor

Backports #3887

3887: [Access] Fix panic converting execution data to protobuf messages r=peterargue a=peterargue

This PR fixes a panic in the state stream API when handling an execution data for a block with an empty service chunk. It also relaxes validation of transactions from execution data to handle service transactions.

Finally, it introduces a new method `execution_data.CalculateID()` which allows you to calculate the execution data id from a `BlockExecutionData`. This enables consumers of the state stream API to verify the data they receives matches the data included in the sealed `ExecutionResult`

Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2023

Codecov Report

Merging #3892 (f35ac6d) into v0.29 (47be83a) will decrease coverage by 0.06%.
The diff coverage is 48.64%.

@@            Coverage Diff             @@
##            v0.29    #3892      +/-   ##
==========================================
- Coverage   53.47%   53.41%   -0.06%     
==========================================
  Files         812      813       +1     
  Lines       76105    76180      +75     
==========================================
  Hits        40695    40695              
- Misses      32113    32178      +65     
- Partials     3297     3307      +10     
Flag Coverage Δ
unittests 53.41% <48.64%> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
module/blobs/blob_store.go 0.00% <0.00%> (ø)
module/executiondatasync/execution_data/util.go 0.00% <0.00%> (ø)
storage/badger/seals.go 94.23% <0.00%> (ø)
engine/common/rpc/convert/convert.go 28.70% <62.06%> (+2.39%) ⬆️
...s/hotstuff/timeoutaggregator/timeout_collectors.go 76.11% <0.00%> (-5.98%) ⬇️
...sus/approvals/assignment_collector_statemachine.go 48.55% <0.00%> (-5.80%) ⬇️
consensus/hotstuff/eventloop/event_loop.go 75.11% <0.00%> (-4.23%) ⬇️
...ratelimit/internal/limiter_map/rate_limiter_map.go 76.00% <0.00%> (-2.67%) ⬇️
...sus/hotstuff/timeoutcollector/timeout_processor.go 85.62% <0.00%> (-1.80%) ⬇️
engine/collection/compliance/core.go 81.93% <0.00%> (-1.69%) ⬇️
... and 7 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@peterargue peterargue merged commit fa5bae9 into v0.29 Feb 2, 2023
@peterargue peterargue deleted the petera/fix-state-stream-panic-v0.29 branch February 2, 2023 19:02
This pull request was closed.
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.

4 participants