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

Class Cache

syncer/src/cache.rs:39–52  ·  view source on GitHub ↗

Prunable archives for a single epoch.

Source from the content-addressed store, hash-verified

37
38/// Prunable archives for a single epoch.
39struct Cache<
40 R: BufferPooler + Rng + Spawner + Metrics + Clock + GClock + Storage,
41 B: Block,
42 S: Scheme<B::Digest>,
43> {
44 /// Verified blocks stored by view
45 verified_blocks: prunable::Archive<TwoCap, R, B::Digest, B>,
46 /// Notarized blocks stored by view
47 notarized_blocks: prunable::Archive<TwoCap, R, B::Digest, B>,
48 /// Notarizations stored by view
49 notarizations: prunable::Archive<TwoCap, R, B::Digest, Notarization<S, B::Digest>>,
50 /// Finalizations stored by view
51 finalizations: prunable::Archive<TwoCap, R, B::Digest, Finalization<S, B::Digest>>,
52}
53
54impl<
55 R: BufferPooler + Rng + Spawner + Metrics + Clock + GClock + Storage,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected