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

Class EngineConfig

node/src/config.rs:31–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29pub const FINALIZER_PENDING_NOTARIZED_MAX: usize = 1000;
30
31const FETCH_TIMEOUT: Duration = Duration::from_secs(5);
32const FETCH_CONCURRENT: usize = 8;
33const MAX_FETCH_COUNT: usize = 32;
34const MAX_FETCH_SIZE: usize = 512 * 1024;
35const DEQUE_SIZE: usize = 32;
36pub const MESSAGE_BACKLOG: usize = 16384;
37const BACKFILL_QUOTA: u32 = 512; // in seconds
38const FETCH_RATE_P2P: u32 = 512; // in seconds
39
40pub struct EngineConfig<C: EngineClient, S: Signer, O: NetworkOracle<S::PublicKey>> {
41 pub engine_client: C,
42 pub partition_prefix: String,
43 pub key_store: KeyStore<S>,
44 pub participants: Vec<(PublicKey, bls12381::PublicKey)>,
45 pub mailbox_size: usize,
46 pub finalizer_pending_notarized_max: usize,
47 pub backfill_quota: Quota,
48 pub deque_size: usize,
49
50 pub oracle: O,
51
52 pub leader_timeout: Duration,
53 pub notarization_timeout: Duration,
54 pub nullify_retry: Duration,
55 pub fetch_timeout: Duration,
56 pub activity_timeout: u64,
57 pub skip_timeout: u64,
58 pub max_fetch_count: usize,
59 pub _max_fetch_size: usize,
60 pub fetch_concurrent: usize,
61 pub fetch_rate_per_peer: Quota,
62
63 pub namespace: String,
64 pub genesis_hash: [u8; 32],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected