-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Small consensus-critical fixes in 1.2.0 #4783
Conversation
72a3b41
to
5d9c798
Compare
ec := exitcode.ErrSerialization | ||
if rt.NetworkVersion() < network.Version7 { | ||
ec = 1 | ||
} |
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.
Although I don't think it's possible to hit, the encoding of params also uses this faulty exit code, perhaps do the same for this or make it fatal?
Edit: in chain/actors/params.go
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.
@austinabell Thanks for the suggestion! If SerializeParams
fails, it's treated as a fatal error in the one place it's called (TryCreateAccountActor
), so the exitcode doesn't matter.
I'm changing its returned exitcode to ErrSerialization
(since that's objectively correct), but I'm not putting it behind network upgrade logic.
Small consensus-critical fixes in 1.2.0
Supersedes all of #3478 and #3730, and most of #3267