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 #3887

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

peterargue
Copy link
Contributor

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

@peterargue
Copy link
Contributor Author

bors merge

@bors bors bot merged commit 013594c into master Feb 1, 2023
@bors bors bot deleted the petera/fix-state-stream-panic branch February 1, 2023 23:33
peterargue added a commit that referenced this pull request Feb 2, 2023
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>
peterargue added a commit that referenced this pull request Feb 2, 2023
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>
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.

3 participants