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

Method encode_size

syncer/src/mocks/block.rs:70–75  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

68 let timestamp = UInt::read(reader)?.into();
69 let epoch = Epoch::new(height.get() / MOCK_BLOCKS_PER_EPOCH);
70 let view = View::new(height.get());
71 let digest = D::read(reader)?;
72
73 // Pre-compute the digest
74 Ok(Self {
75 parent,
76 height,
77 timestamp,
78 epoch,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected