(&self, epoch: u64)
| 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. |
| 84 | struct StateProofSlot(Arc<AtomicUsize>); |
| 85 | |
| 86 | impl Drop for StateProofSlot { |
| 87 | fn drop(&mut self) { |
| 88 | self.0.fetch_sub(1, Ordering::SeqCst); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | impl 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, |
nothing calls this directly
no test coverage detected