Structure
BlockchainSync.Updates
A single-consumer AsyncSequence of BlockchainSync.Update values emitted as the sync engine drives the chainstate forward.
struct Updates
Overview
Backed by an AsyncStream with .bufferingNewest(64) — under a slow consumer, mid-sync updates may be dropped, but the initial BlockchainSync.Update.State.preparing and the terminal BlockchainSync.Update.State.finished / BlockchainSync.Update.State.failed(_:) are always delivered.
Note
Iterating the same Updates value twice starts an independent sync run on each iteration. That’s rarely what you want; store a single Updates value and iterate it once.
Topics
Structures
Instance Methods
Type Aliases