chore: use existing get sealed function (#3426)

This commit is contained in:
Matthias Seitz
2023-06-27 18:37:14 +02:00
committed by GitHub
parent d4df89616c
commit 7984a72657

View File

@@ -129,7 +129,7 @@ where
None => return Ok(None),
};
Ok(self.cache().get_block(block_hash).await?.map(|block| block.seal(block_hash)))
Ok(self.cache().get_sealed_block(block_hash).await?)
}
/// Returns the populated rpc block object for the given block id.