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

Method handle_result

syncer/src/cache.rs:307–319  ·  view source on GitHub ↗

Helper to debug cache results.

(result: Result<(), archive::Error>, round: Round, name: &str)

Source from the content-addressed store, hash-verified

305 epoch: Epoch,
306 height: Height,
307 commitment: B::Digest,
308 block: B,
309 ) {
310 let Some(cache) = self.get_or_init_epoch(epoch).await else {
311 return;
312 };
313 if cache
314 .certified_blocks
315 .as_ref()
316 .expect("certified archive unavailable")
317 .has_at(height.get(), &commitment)
318 .await
319 .expect("failed to check certified block")
320 {
321 return;
322 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected