Skip to content

perf(sync-service): parallelize Aura call proofs during parachain bootstrap #3219

@replghost

Description

@replghost

Summary

During parachain bootstrap (bootstrap_parachain_consensus), the two Aura call proofs are fetched sequentially:

  1. Download AuraApi_slot_duration call proof → execute
  2. Download AuraApi_authorities call proof → execute

These are independent of each other. Fire both downloads in parallel with join, then execute sequentially. Saves one P2P round-trip on every start (cold and warm).

Context

Part of a series of architectural improvements to parachain startup time. See also:

Effort

Trivial — change two sequential awaits to a join.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions