-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chore(sdk): SealedBlock
generic over header and body
#11430
Conversation
#[derive(Debug, Clone, PartialEq, Eq, Default, Serialize, Deserialize, Deref, DerefMut)] | ||
pub struct SealedBlock { | ||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Deref, DerefMut)] | ||
pub struct SealedBlock<H = Header, B = BlockBody> { |
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.
having to generics here is likely not convenient, ideally this should use the Block trait
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.
SealedBlock
is a return type in signature of Block
trait
please link the other prs, it's easy to miss |
end goal is to move to |
Is this blocking any PRs or issues right now? If so, what's being blocked? |
yes, it isn't possible to plug in the |
Makes
SealedBlock
type definition generic over header and body type, which is a necessary first step to useSealedBlock
inBlock
trait method signatures