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:
@ -91,7 +91,7 @@ impl<N: NodePrimitives> Chain<N> {
|
||||
|
||||
/// Returns an iterator over all headers in the block with increasing block numbers.
|
||||
pub fn headers(&self) -> impl Iterator<Item = SealedHeader<N::BlockHeader>> + '_ {
|
||||
self.blocks.values().map(|block| block.sealed_header().clone())
|
||||
self.blocks.values().map(|block| block.clone_sealed_header())
|
||||
}
|
||||
|
||||
/// Get cached trie updates for this chain.
|
||||
|
||||
Reference in New Issue
Block a user