Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add new Runtime API messages and make runtime API request fallible #1485

Merged
9 commits merged into from
Jul 28, 2020

Conversation

rphmeier
Copy link
Contributor

Part of #1419

This updates the RuntimeApiMessage to match the v1::ParachainHost APIs. It also updates the requests to be fallible, in case an internal error is encountered. And lastly, it updates all existing subsystems to handle this fallibility in a way which doesn't take the node down, and updates them to use the new runtime APIs.

@rphmeier rphmeier added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Jul 28, 2020
Copy link
Contributor

@coriolinus coriolinus left a comment

Choose a reason for hiding this comment

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

I would be happier if there were some common pattern to handle runtime errors which we could extract, but if such a pattern exists, I haven't seen it in the implementations here.

@rphmeier
Copy link
Contributor Author

bot merge

@ghost
Copy link

ghost commented Jul 28, 2020

Trying merge.

@ghost ghost merged commit 7ed4cb9 into master Jul 28, 2020
@ghost ghost deleted the rh-runtime-api-message branch July 28, 2020 18:02
@rphmeier
Copy link
Contributor Author

I would be happier if there were some common pattern to handle runtime errors which we could extract, but if such a pattern exists, I haven't seen it in the implementations here.

I agree, although I am not sure if there is a unifying theme here other than "this shouldn't take down the node"

This pull request was closed.
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants