You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(nns): More strictly represent neuron visibility. (dfinity#3697)
This is done by introducing a native Visibility type, and making native
Neuron use it. The most interesting difference between this native
Visibility and pb::Visibility is that native Visibility has no
Unspecified value. Also, got rid of Option.
Without the possibility that visibility can be None, we are able to
restore `#[derive(PartialEq)]` on Neuron. Thus, we ditch the custom
`PartialEq` implementation.
Also, made the `known_neuron_data` field NOT `pub` anymore. That way,
Neuron can prevent it from becoming inconsistent with `visibility`.
# References
Closes [NNS1-3239].
[NNS1-3239]: https://dfinity.atlassian.net/browse/NNS1-3239
0 commit comments