-
Notifications
You must be signed in to change notification settings - Fork 126
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
Remove compilation feature disable-metadata-hash-check
#833
Conversation
disable-metadata-hash-check
mortality_checkpoint: Option<Hash>, | ||
tip: Tip, | ||
pub era: Era, | ||
pub mortality_checkpoint: Option<Hash>, |
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.
Not sure if it's the best way to make this pub, but the normal getter function names are already taken as setter functions.. and since it does not provide any real functionality, it's basically just a data container. So I don't see the need to keep the inners private.
Happy to adapt if it's not ok.
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.
How about using pub(crate)
?
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.
Not sure, because if we are able to reuse the struct in a different ExtrinsicParams implementation, then so could others with their specific Runtime implementation.
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.
Fair point. Then we leave it as is, works for me.
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.
Just one comment regarding pub
mortality_checkpoint: Option<Hash>, | ||
tip: Tip, | ||
pub era: Era, | ||
pub mortality_checkpoint: Option<Hash>, |
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.
How about using pub(crate)
?
disable-metadata-hash-check
ExtrinsicParamsWithoutHashCheck
to still provide an "easy" compatibility with older nodes.