Start the actor.
(
mut self,
application: impl Reporter<Activity = Update<B, P::Scheme, A>>,
buffer: buffered::Mailbox<K, B>,
resolver: (mpsc::Receiver<handler::Message<B::Digest>>, R),
| 376 | Self { |
| 377 | context: ContextCell::new(context), |
| 378 | mailbox, |
| 379 | provider: config.scheme_provider, |
| 380 | epocher: config.epocher, |
| 381 | view_retention_timeout: config.view_retention_timeout, |
| 382 | max_repair: config.max_repair, |
| 383 | block_codec_config: config.block_codec_config, |
| 384 | strategy: config.strategy, |
| 385 | last_processed_round: Round::zero(), |
| 386 | last_processed_height: Height::zero(), |
| 387 | pending_acks: PendingAcks::new(config.max_pending_acks.get()), |
| 388 | tip: Height::zero(), |
| 389 | block_subscriptions: BTreeMap::new(), |
| 390 | cache, |
| 391 | application_metadata, |
| 392 | finalizations_by_height, |
| 393 | finalized_blocks, |
| 394 | }, |
| 395 | Mailbox::new(sender), |
| 396 | ) |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | /// Start the actor. |
| 401 | pub fn start<R, K>( |
no outgoing calls