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

Method cache_block

syncer/src/actor.rs:1272–1275  ·  view source on GitHub ↗

Add a notarized block to the prunable archive.

(&mut self, round: Round, commitment: B::Digest, block: B)

Source from the content-addressed store, hash-verified

1270 resolver.fetch(request).await;
1271 return;
1272 };
1273
1274 // The block and finalization are loaded independently by height
1275 // from two immutable archives. Re-verify the stored block is the
1276 // one this certificate finalizes before binding them into a
1277 // finalized-header report: a mismatch means the local archives are
1278 // inconsistent and must not be exported as a finalized header.

Callers 1

verify_deliveredMethod · 0.80

Calls 2

notify_subscribersMethod · 0.80
put_blockMethod · 0.80

Tested by

no test coverage detected