mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add SealedBlock::clone_sealed_header (#13739)
This commit is contained in:
@ -195,6 +195,14 @@ impl<H, B> SealedBlock<H, B> {
|
||||
&self.header
|
||||
}
|
||||
|
||||
/// Clones the wrapped header and returns a [`SealedHeader`] sealed with the hash.
|
||||
pub fn clone_sealed_header(&self) -> SealedHeader<H>
|
||||
where
|
||||
H: Clone,
|
||||
{
|
||||
self.header.clone()
|
||||
}
|
||||
|
||||
/// Consumes the block and returns the sealed header.
|
||||
pub fn into_sealed_header(self) -> SealedHeader<H> {
|
||||
self.header
|
||||
|
||||
Reference in New Issue
Block a user