| 63 | const BACKFILL_FETCH_RETRY_TIMEOUT: Duration = Duration::from_millis(1500); |
| 64 | |
| 65 | // |
| 66 | // Onboarding config |
| 67 | |
| 68 | // Number of epochs after a deposit until a validator joins the committee |
| 69 | pub const VALIDATOR_NUM_WARM_UP_EPOCHS: u64 = 2; |
| 70 | // Number of epochs after a withdrawal request until the payout |
| 71 | pub const VALIDATOR_WITHDRAWAL_NUM_EPOCHS: u64 = 2; |
| 72 | // |
| 73 | |
| 74 | pub struct Engine< |
| 75 | E: BufferPooler + Clock + GClock + Rng + CryptoRng + Spawner + Storage + Metrics + Network, |
| 76 | C: EngineClient, |
| 77 | O: NetworkOracle<PublicKey> + Blocker<PublicKey = S::PublicKey> + Provider<PublicKey = PublicKey>, |
| 78 | S: Signer<PublicKey = PublicKey>, |
| 79 | > { |
| 80 | context: E, |
| 81 | application: |
| 82 | summit_application::Actor<E, C, MultisigScheme, S::PublicKey, S, MinPk, DynamicEpocher>, |
| 83 | buffer: buffered::Engine<E, S::PublicKey, Block, O>, |
| 84 | buffer_mailbox: buffered::Mailbox<S::PublicKey, Block>, |
| 85 | #[allow(clippy::type_complexity)] |
| 86 | syncer: summit_syncer::Actor< |
| 87 | E, |
| 88 | Block, |
| 89 | SummitSchemeProvider, |
| 90 | immutable::Archive< |
| 91 | E, |
| 92 | summit_types::Digest, |
| 93 | commonware_consensus::simplex::types::Finalization< |
| 94 | MultisigScheme, |
| 95 | summit_types::Digest, |
| 96 | >, |
| 97 | >, |
| 98 | immutable::Archive<E, summit_types::Digest, Block>, |
| 99 | DynamicEpocher, |
| 100 | Sequential, |
| 101 | Exact, |
| 102 | >, |
| 103 | syncer_mailbox: summit_syncer::Mailbox<MultisigScheme, Block>, |
| 104 | finalizer: Finalizer<E, C, O, S, MinPk>, |
| 105 | pub finalizer_mailbox: FinalizerMailbox<MultisigScheme, Block>, |
| 106 | pub finalizer_state_query: ConsensusStateQuery<MultisigScheme>, |
| 107 | orchestrator: summit_orchestrator::Actor< |
| 108 | E, |
| 109 | O, |
| 110 | summit_application::Mailbox<S::PublicKey>, |
| 111 | Sequential, |
| 112 | DynamicEpocher, |
| 113 | >, |
| 114 | orchestrator_mailbox: summit_orchestrator::Mailbox, |
| 115 | oracle: O, |
| 116 | node_public_key: PublicKey, |
nothing calls this directly
no outgoing calls
no test coverage detected