mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: simplify OpBuiltPayload (#14152)
This commit is contained in:
@ -847,6 +847,12 @@ impl<N: NodePrimitives> ExecutedBlockWithTrieUpdates<N> {
|
||||
pub fn trie_updates(&self) -> &TrieUpdates {
|
||||
&self.trie
|
||||
}
|
||||
|
||||
/// Converts the value into [`SealedBlock`].
|
||||
pub fn into_sealed_block(self) -> SealedBlock<N::Block> {
|
||||
let block = Arc::unwrap_or_clone(self.block.recovered_block);
|
||||
block.into_sealed_block()
|
||||
}
|
||||
}
|
||||
|
||||
/// Non-empty chain of blocks.
|
||||
|
||||
Reference in New Issue
Block a user