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

Method sync_finalized

syncer/src/actor.rs:1284–1300  ·  view source on GitHub ↗

Sync both finalization archives to durable storage. Must be called within the same `select_loop!` arm as any preceding [`Self::store_finalization`] / [`Self::try_repair_gaps`] writes, before yielding back to the loop.

(&mut self)

Source from the content-addressed store, hash-verified

1282
1283 let Ok((finalization, block)) =
1284 <(Finalization<P::Scheme, B::Digest>, B)>::decode_cfg(
1285 value,
1286 &(
1287 scheme.certificate_codec_config(),
1288 self.block_codec_config.clone(),
1289 ),
1290 )
1291 else {
1292 response.send_lossy(false);
1293 return false;
1294 };
1295
1296 let certified_round = finalization.round();
1297 if block.height() != height
1298 || finalization.proposal.payload != block.digest()
1299 || finalization.epoch() != epoch
1300 || block.epoch() != certified_round.epoch()
1301 || !header_view_binds_to_round(
1302 &self.epocher,
1303 block.height().get(),

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected