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

Method get_checkpoint

rpc/src/server.rs:74–99  ·  view source on GitHub ↗
(&self, epoch: u64)

Source from the content-addressed store, hash-verified

72 #[cfg(feature = "permissioned")]
73 paused: Arc<AtomicBool>,
74 /// Hex of the pause-authorization domain (genesis hash + namespace). Bound
75 /// into every pause/unpause signed message so an authorization for one
76 /// deployment cannot be replayed against another that trusts the same
77 /// admin key.
78 #[cfg(feature = "permissioned")]
79 pause_scope: String,
80}
81
82/// Releases one in-flight state-proof slot on drop — covers normal completion,
83/// early return, and future cancellation alike.
84struct StateProofSlot(Arc<AtomicUsize>);
85
86impl Drop for StateProofSlot {
87 fn drop(&mut self) {
88 self.0.fetch_sub(1, Ordering::SeqCst);
89 }
90}
91
92impl SummitRpcServer {
93 pub fn new(
94 key_store_path: String,
95 state_query: ConsensusStateQuery<MultisigScheme>,
96 genesis_hash: [u8; 32],
97 namespace: &[u8],
98 observer_node_key: Option<String>,
99 #[cfg(feature = "permissioned")] paused: Arc<AtomicBool>,
100 ) -> Self {
101 Self {
102 key_store_path,

Callers

nothing calls this directly

Calls 1

get_finalized_headerMethod · 0.45

Tested by

no test coverage detected