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

Update to specs-actors 0.9.9 #3844

Merged
merged 1 commit into from Sep 14, 2020
Merged

Update to specs-actors 0.9.9 #3844

merged 1 commit into from Sep 14, 2020

Conversation

Stebalien
Copy link
Member

This patch changes the runtime interfaces, to make it possible to abstract over them.

This patch changes the runtime interfaces, to make it possible to abstract over them.
Comment on lines +352 to +354
if err := out.UnmarshalCBOR(bytes.NewReader(ret)); err != nil {
rt.Abortf(exitcode.ErrSerialization, "failed to unmarshal return value: %s", err)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like it could be consensus-critical? I assume in the old code, the exit code would've been decided by however the caller handled an error arising from ret.Into()?

In particular, I'm concerned that the return type might have been ignored in some Send calls, which would cloak the serialization error, whereas now it's guaranteed to be noticed in the internal send's exit code?

Copy link
Member Author

Choose a reason for hiding this comment

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

We should only hit this if we have a bug. Honestly, we might want to panic (or do something really noisy here).

Can we run a chain import against this to see if we have ever hit a bug here?

@arajasek arajasek merged commit 07e574d into master Sep 14, 2020
@arajasek arajasek deleted the steb/specs-actors-0.9.9 branch September 14, 2020 21:19
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.

None yet

2 participants