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

Method build

rpc/src/builder.rs:64–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 // http-only: Summit's RPC is request/response (no subscriptions), so
63 // websockets are not needed. jsonrpsee enables websockets with pings
64 // disabled by default, and an idle upgraded connection holds its
65 // max_connections permit until the client closes; disabling websocket
66 // upgrades removes that idle-permit-exhaustion vector entirely.
67 // The batch config caps calls per JSON-RPC batch (see `with_batch_limit`).
68 config: ServerConfigBuilder::new()
69 .http_only()
70 .set_batch_request_config(default_batch_config()),
71 cors_domains: None,
72 request_timeout: Duration::from_secs(crate::DEFAULT_RPC_REQUEST_TIMEOUT_SECS),
73 }
74 }
75
76 pub fn with_max_connections(mut self, max: u32) -> Self {
77 self.config = self.config.max_connections(max);
78 self
79 }
80
81 pub fn with_max_request_body_size(mut self, max: u32) -> Self {
82 self.config = self.config.max_request_body_size(max);
83 self

Callers 15

from_ssz_bytesMethod · 0.45
from_ssz_bytesMethod · 0.45
from_ssz_bytesMethod · 0.45
start_rpc_serverFunction · 0.45
test_health_endpointFunction · 0.45
test_get_latest_heightFunction · 0.45
test_get_latest_epochFunction · 0.45
test_get_public_keysFunction · 0.45

Calls

no outgoing calls

Tested by 11

test_health_endpointFunction · 0.36
test_get_latest_heightFunction · 0.36
test_get_latest_epochFunction · 0.36
test_get_public_keysFunction · 0.36
test_send_genesisFunction · 0.36
test_get_minimum_stakeFunction · 0.36
test_get_maximum_stakeFunction · 0.36