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

Method new

rpc/src/server.rs:40–51  ·  view source on GitHub ↗
(
        key_store_path: String,
        finalizer_mailbox: FinalizerMailbox<MultisigScheme, Block>,
        #[cfg(feature = "permissioned")] paused: Arc<AtomicBool>,
    )

Source from the content-addressed store, hash-verified

38/// caps how many run concurrently so a flood of individually limit-respecting
39/// requests cannot just move the pressure onto the shared task pool. At capacity
40/// further requests are rejected (retryable) rather than queued, keeping task
41/// count and memory bounded under load.
42pub const MAX_CONCURRENT_STATE_PROOFS: usize = 16;
43
44pub(crate) struct SummitDepositRpcServer {
45 key_store_path: String,
46 deposit_signature_domain: Digest,
47}
48
49impl SummitDepositRpcServer {
50 pub(crate) fn new(key_store_path: String, genesis_hash: [u8; 32], namespace: &[u8]) -> Self {
51 Self {
52 key_store_path,
53 deposit_signature_domain: deposit_signature_domain(genesis_hash, namespace),
54 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected