MCPcopy Create free account
hub / github.com/SeismicSystems/summit / get_notarization

Method get_notarization

syncer/src/cache.rs:322–332  ·  view source on GitHub ↗

Get a notarization from the prunable archive by round.

(
        &self,
        round: Round,
    )

Source from the content-addressed store, hash-verified

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(

Callers 1

handle_produceMethod · 0.80

Calls 3

getMethod · 0.80
epochMethod · 0.80
viewMethod · 0.80

Tested by

no test coverage detected