mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-08 22:14:57 -05:00
feat(engine): new payload execution (#631)
* feat(engine): new payload execution * address PR comments * rm unused dev deps * add comment about lru * remove par_iter
This commit is contained in:
@@ -37,12 +37,26 @@ impl SealedBlock {
|
||||
pub fn hash(&self) -> H256 {
|
||||
self.header.hash()
|
||||
}
|
||||
|
||||
/// Splits the sealed block into underlying components
|
||||
pub fn split(self) -> (SealedHeader, Vec<TransactionSigned>, Vec<SealedHeader>) {
|
||||
(self.header, self.body, self.ommers)
|
||||
}
|
||||
|
||||
/// Unseal the block
|
||||
pub fn unseal(self) -> Block {
|
||||
Block {
|
||||
header: self.header.unseal(),
|
||||
body: self.body,
|
||||
ommers: self.ommers.into_iter().map(|o| o.unseal()).collect(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Deref for SealedBlock {
|
||||
type Target = Header;
|
||||
type Target = SealedHeader;
|
||||
fn deref(&self) -> &Self::Target {
|
||||
self.header.as_ref()
|
||||
&self.header
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user