Get a notarization from the prunable archive by round.
(
&self,
round: Round,
)
| 320 | |
| 321 | /// Get a notarization from the prunable archive by round. |
| 322 | pub(crate) async fn get_notarization( |
| 323 | &self, |
| 324 | round: Round, |
| 325 | ) -> Option<Notarization<S, B::Digest>> { |
| 326 | let cache = self.caches.get(&round.epoch())?; |
| 327 | cache |
| 328 | .notarizations |
| 329 | .get(Identifier::Index(round.view().get())) |
| 330 | .await |
| 331 | .expect("failed to get notarization") |
| 332 | } |
| 333 | |
| 334 | /// Get a finalization from the prunable archive by commitment. |
| 335 | pub(crate) async fn get_finalization_for( |
no test coverage detected